FlusmicError.fromException constructor

FlusmicError.fromException(
  1. Exception exception
)

Exception for failed deserialization exception

Implementation

factory FlusmicError.fromException(Exception exception) {
  return FlusmicError._(
    code: 100,
    humanMessage: 'Unknown error',
    message: exception.toString(),
    response: exception.toString(),
  );
}