Class DcvException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.digicert.validation.exceptions.DcvException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InputException, PreparationException, ValidationException

public class DcvException extends Exception
Base Exception class for DCV (Domain Control Validation) related exceptions.

This class serves as the foundational exception for all errors related to Domain Control Validation (DCV). It encapsulates a set of DCV errors, providing a structured way to handle and report issues encountered during the DCV process.

See Also:
  • Field Details

    • errors

      private final Set<DcvError> errors
      The set of DCV errors.

      This field holds a set of `DcvError` enums that represent the specific errors encountered during the DCV process.

  • Constructor Details

    • DcvException

      public DcvException(DcvError dcvError)
      Constructs a new DcvException with the specified DcvError.
      Parameters:
      dcvError - the DCV error that caused the exception to be thrown
    • DcvException

      public DcvException(Set<DcvError> errors)
      Constructs a new DcvException with a set of specified DcvErrors.
      Parameters:
      errors - the set of DCV errors that caused the exception to be thrown
    • DcvException

      public DcvException(Set<DcvError> dcvErrors, Throwable cause)
      Constructs a new DcvException with a set of specified DcvErrors and an optional cause.
      Parameters:
      dcvErrors - the set of DCV errors that caused the exception to be thrown
      cause - the cause of the exception