MicropayError.authentication constructor

MicropayError.authentication(
  1. String message
)

Creates an authentication error.

Implementation

factory MicropayError.authentication(String message) {
  return MicropayError(
    code: 'authentication_error',
    message: message,
    statusCode: 401,
  );
}