fromException static method
Wraps a Exception within an AlarmException.
Implementation
static AlarmException fromException(
Exception ex, [
StackTrace? stacktrace,
]) {
return AlarmException(
AlarmErrorCode.unknown,
message: ex.toString(),
stacktrace: stacktrace?.toString() ?? StackTrace.current.toString(),
);
}