Pip-Services-Commons-Dotnet
|
Class of errors related to access of missing objects. More...
Public Member Functions | |
NotFoundException (string message) | |
Creates an error instance with error message. More... | |
NotFoundException (Exception innerException) | |
Creates an error instance and assigns its values. More... | |
NotFoundException (string correlationId=null, string code=null, string message=null, Exception innerException=null) | |
Creates an error instance and assigns its values. More... | |
Public Member Functions inherited from PipServices3.Commons.Errors.ApplicationException | |
ApplicationException () | |
Creates a new instance of application exception. More... | |
ApplicationException (string category=null, string correlationId=null, string code=null, string message=null) | |
Creates a new instance of application exception and assigns its values. More... | |
override void | GetObjectData (SerializationInfo info, StreamingContext context) |
ApplicationException | WithCode (string code) |
Sets a unique error code. More... | |
ApplicationException | WithCorrelationId (string correlationId) |
Sets a correlation id which can be used to trace this error through a call chain. More... | |
ApplicationException | WithCause (Exception cause) |
Sets a original error wrapped by this exception. More... | |
ApplicationException | WithStatus (int status) |
Sets a HTTP status code which shall be returned by REST calls. More... | |
ApplicationException | WithDetails (string key, object value) |
Sets a parameter for additional error details. This details can be used to restore error description in other languages. More... | |
ApplicationException | WithStackTrace (string stackTrace) |
Sets a stack trace for this error. This method returns reference to this exception to implement Builder pattern to chain additional calls. More... | |
ApplicationException | Wrap (Exception cause) |
Wraps another exception into specified application exception object. If original exception is of ApplicationException type it is returned without changes.Otherwise the original error is set as a cause to specified ApplicationException object. More... | |
Protected Member Functions | |
NotFoundException (SerializationInfo info, StreamingContext context) | |
Protected Member Functions inherited from PipServices3.Commons.Errors.ApplicationException | |
ApplicationException (string message) | |
Creates a new instance of application exception with string message. More... | |
ApplicationException (SerializationInfo info, StreamingContext context) | |
Additional Inherited Members | |
Static Public Member Functions inherited from PipServices3.Commons.Errors.ApplicationException | |
static ApplicationException | WrapException (ApplicationException error, Exception cause) |
Wraps another exception into specified application exception object. If original exception is of ApplicationException type it is returned without changes.Otherwise the original error is set as a cause to specified ApplicationException object. More... | |
Public Attributes inherited from PipServices3.Commons.Errors.ApplicationException | |
string | BaseMessage => Message |
Properties inherited from PipServices3.Commons.Errors.ApplicationException | |
string | Category [get, set] |
string | CorrelationId [get, set] |
string | Cause [get, set] |
string | Code [get, set] |
int | Status [get, set] |
StringValueMap | Details [get, set] |
new string | StackTrace [get, set] |
Class of errors related to access of missing objects.
PipServices3.Commons.Errors.NotFoundException.NotFoundException | ( | string | message | ) |
Creates an error instance with error message.
message | (optional) a human-readable description of the error. |
PipServices3.Commons.Errors.NotFoundException.NotFoundException | ( | Exception | innerException | ) |
Creates an error instance and assigns its values.
innerException | an error object |
PipServices3.Commons.Errors.NotFoundException.NotFoundException | ( | string | correlationId = null , |
string | code = null , |
||
string | message = null , |
||
Exception | innerException = null |
||
) |
Creates an error instance and assigns its values.
correlationId | (optional) a unique transaction id to trace execution through call chain. |
code | (optional) a unique error code. Default: "UNKNOWN" |
message | (optional) a human-readable description of the error. |
innerException | an error object |