CulqiError.fromType constructor

CulqiError.fromType(
  1. CulqiErrorType errorType,
  2. {dynamic errorCode = -1,
  3. dynamic errorMessage = 'Unknown Error',
  4. dynamic exception}
)

Implementation

CulqiError.fromType(CulqiErrorType errorType, {errorCode=-1, errorMessage='Unknown Error', exception}){
  _errorType = errorType;
  _errorCode = errorCode;
  _errorMessage = errorMessage;
  _exception = exception;
}