Message property
Gets a message that describes the current exception.
Implementation
@override
String? get Message {
if (this.Response.ErrorCode == ServiceError.ErrorInternalServerError) {
if (this.Response.ErrorDetails!.containsKey(_ExceptionClassKey) &&
this.Response.ErrorDetails!.containsKey(_ExceptionMessageKey) &&
this.Response.ErrorDetails!.containsKey(_StackTraceKey)) {
String? exceptionClass = this.Response.ErrorDetails![_ExceptionClassKey];
String? exceptionMessage =
this.Response.ErrorDetails![_ExceptionMessageKey];
String? stackTrace = this.Response.ErrorDetails![_StackTraceKey];
return "${this._response.ErrorMessage} -- Server Error: $exceptionClass: $exceptionMessage $stackTrace";
}
}
return this.Response.ErrorMessage;
}