parseException static method
Implementation
static GenericException parseException(dynamic e) {
try {
if (e is Exception) {
return GenericException(causeException: e);
} else if (e is Error) {
return GenericException(causeError: e);
} else {
return GenericException(message: 'Unknown exception');
}
} catch (e) {
return GenericException(message: 'Unknown exception');
}
}