ErrorFunctions
- Namespace:
PPDS.Dataverse.Query.Execution.Functions - Assembly:
PPDS.Dataverse - Kind: Class
Summary
T-SQL error functions for TRY/CATCH blocks. ERROR_MESSAGE(), ERROR_NUMBER(), ERROR_SEVERITY(), ERROR_STATE(). These read error state from @@ERROR_* variables in the VariableScope.
Members
Methods
RegisterAll
void RegisterAll(FunctionRegistry registry, Func<VariableScope> scopeAccessor)
Registers all error functions into the given registry.
-
Param
registry: The function registry to register into. -
Param
scopeAccessor: A function that returns the current VariableScope. Called at invocation time.