PasswordEnrollmentCustomValidationError.create constructor

PasswordEnrollmentCustomValidationError.create(
  1. String errorMessage,
  2. String? cause
)

Alternate constructor that creates a PasswordEnrollmentCustomValidationError from a json.

Params:

  • errorMessage: details about the error that occurred.
  • cause: the exception (if any) that caused this error.

Implementation

factory PasswordEnrollmentCustomValidationError.create(
  String errorMessage,
  String? cause,
) {
  return PasswordEnrollmentCustomValidationErrorImpl(
    cause: cause,
    description: errorMessage,
  );
}