FlintError.fromException constructor
Creates a FlintError from another exception.
Implementation
factory FlintError.fromException(
dynamic exception, {
int? statusCode,
Uri? url,
String? method,
}) {
if (exception is FlintError) {
return exception;
}
return FlintError(
exception.toString(),
statusCode: statusCode,
originalException: exception,
url: url,
method: method,
);
}