Class EnzonaException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.alejo2075.enzonasdk.exception.EnzonaException
All Implemented Interfaces:
Serializable

public class EnzonaException extends Exception
Represents exceptions that are specific to EnZona API interactions. This class extends Exception and provides constructors that support both messages and causes.

Use this exception to indicate failures related to EnZona API operations, such as network issues, data format errors, or API limitations.

See Also:
  • Constructor Details

    • EnzonaException

      public EnzonaException(String message)
      Constructs a new EnzonaException with the specified detail message.
      Parameters:
      message - the detail message, saved for later retrieval by the getMessage() method
    • EnzonaException

      public EnzonaException(String message, Throwable cause)
      Constructs a new EnzonaException with the specified detail message and cause.
      Parameters:
      message - the detail message, saved for later retrieval by the getMessage() method
      cause - the cause, saved for later retrieval by the getCause() method, which may be null indicating the cause is nonexistent or unknown