Class CertificationServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.iam.exception.OIMServiceException
oracle.iam.certification.exception.CertificationServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlreadyExistsException, InvalidPasswordException, NotYetCompletedException, PrimaryReviewerDelegationException, SelfCertificationException

public abstract class CertificationServiceException extends OIMServiceException
Base class for all checked exceptions produced in the Certification services:
  • Encourage use of error codes, and hence localized messages
  • Instantiate error message in server locale here, instead of in every subclass
Subclasses of this class provide an end-user with sufficient information to correct an invalid request so it can be resubmitted. Errors that the end-user cannot correct should be reported using a CertificationRuntimeException subclass

Client locale must be set in the Context at instantiation of this class for a localized message to be produced (authentication processing typically sets Context locale from HTTP request locale)

Future: This base class will be made package private, so do not reference it anywhere except subclasses

See Also:
  • Constructor Details

    • CertificationServiceException

      public CertificationServiceException(String errorCode, Serializable[] errorData)
      Instantiate this class with a localized message
      Parameters:
      errorCode - A Logging.properties key
      errorData - Arguments to the substitution parameters in the error message, if any, or null, otherwise