SalSqlError
Namespace: PPJ.Runtime.Sql
Assembly: PPJ.Web.49 (4.9.0.0)
SalSqlError implementation.
- C#
- VB.NET
public class SalSqlError : ApplicationException
Public Class SalSqlError
Inherits ApplicationException
Constructors
SalSqlError(err, pos, message)
Constructor
| Name | Type | Description |
|---|---|---|
| err | Int32 | |
| pos | Int32 | |
| message | String |
SalSqlError(err, pos, message, source)
Constructor
| Name | Type | Description |
|---|---|---|
| err | Int32 | |
| pos | Int32 | |
| message | String | |
| source | Exception |
SalSqlError(source)
Constructor
| Name | Type | Description |
|---|---|---|
| source | Exception |
Properties
HasReturnValue
Boolean: Returns true if the return value was set.
Number
Int32: Error number
Position
Int32: Error position
Return
Boolean: Return value. When set, the flag HasReturnValue is also flipped to true.
Methods
GetErrorText(errorCode)
Returns the error text corresponding to the error code. Error texts are saved as errors are generated. If an error has never been generated, requesting the error text for the error code will return a null string.
| Parameter | Type | Description |
|---|---|---|
| errorCode | Int32 |
Returns: String.
SetErrorText(err, text)
Saves the error code into the global cache of errors.
| Parameter | Type | Description |
|---|---|---|
| err | Int32 | |
| text | String |