Class CtSubmissionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
zeroecho.pki.server.ct.CtSubmissionException
All Implemented Interfaces:
Serializable

public final class CtSubmissionException extends Exception
Thrown when pre-certificate submission to a CT log fails.

Failures include: network errors, HTTP 4xx/5xx responses after all retries are exhausted, deadline expiry, and response parsing failures. The logId() identifies which CT log caused the failure so callers can decide whether to fall back to other configured logs.

Since:
1.0
See Also:
  • Constructor Details

    • CtSubmissionException

      public CtSubmissionException(String message, String logId)
      Creates an exception for the given CT log.
      Parameters:
      message - human-readable failure description; must not be null
      logId - hex log ID of the CT log that failed; must not be null
    • CtSubmissionException

      public CtSubmissionException(String message, String logId, Throwable cause)
      Creates an exception wrapping a lower-level cause.
      Parameters:
      message - human-readable failure description; must not be null
      logId - hex log ID of the CT log that failed; must not be null
      cause - lower-level exception that triggered this failure; may be null
  • Method Details

    • logId

      public String logId()
      Returns the hex log ID of the CT log that failed.
      Returns:
      hex log ID