CustomException constructor

CustomException({
  1. String? code,
  2. int? statusCode,
  3. required String message,
  4. _ExceptionType exceptionType = _ExceptionType.ApiException,
})

Implementation

CustomException({
  this.code,
  int? statusCode,
  required this.message,
  this.exceptionType = _ExceptionType.ApiException,
})  : statusCode = statusCode ?? 500,
      name = exceptionType.name;