MokaException constructor

MokaException({
  1. String? code,
  2. int? statusCode,
  3. required String message,
  4. ExceptionType type = ExceptionType.unrecognizedException,
})

Implementation

MokaException({
  this.code,
  int? statusCode,
  required this.message,
  this.type = ExceptionType.unrecognizedException,
})  : statusCode = statusCode ?? 500,
      name = type.name;