CreateException class
Error raised when factory is not able to create requested component.
See InternalException (in the PipServices 'Commons' package) See ApplicationException (in the PipServices 'Commons' package)
Constructors
- CreateException(String? correlationId, dynamic messageOrLocator)
- Creates an error instance and assigns its values.
Properties
- category ↔ String
-
Standard error category
read / writeinherited
- cause ↔ String?
-
read / writeinherited
- code ↔ String
-
A unique error code
read / writeinherited
- correlation_id ↔ String?
-
A unique transaction id to trace execution throug call chain
read / writeinherited
- details ↔ StringValueMap?
-
A map with additional details that can be used to restore error description in other languages
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- message ↔ String?
-
A human-readable error description (usually written in English)
read / writeinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- stack_trace ↔ String?
-
Stack trace of the exception
read / writeinherited
- status ↔ int
-
HTTP status code associated with this error type
read / writeinherited
Methods
-
fromJson(
Map< String, dynamic> json) → void -
inherited
-
getCauseString(
) → String? -
Gets original error wrapped by this exception as a string message.
inherited
-
getStackTraceString(
) → String? -
Gets a stack trace where this exception occured.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCauseString(
String value) → void -
Sets original error wrapped by this exception as a string message.
inherited
-
setStackTraceString(
String value) → void -
Sets a stack trace where this exception occured.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withCause(
dynamic cause) → ApplicationException -
Sets a original error wrapped by this exception
inherited
-
withCode(
String code) → ApplicationException -
Sets a unique error code.
inherited
-
withCorrelationId(
String? correlationId) → ApplicationException -
Sets a correlation id which can be used to trace this error through a call chain.
inherited
-
withDetails(
String key, dynamic value) → ApplicationException -
Sets a parameter for additional error details.
This details can be used to restore error description in other languages.
inherited
-
withStackTrace(
String stackTrace) → ApplicationException -
Sets a stack trace for this error.
inherited
-
withStatus(
int status) → ApplicationException -
Sets a HTTP status code which shall be returned by REST calls.
inherited
-
wrap(
dynamic cause) → ApplicationException -
Wraps another exception into an application exception object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited