Class EnzonaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.alejo2075.enzonasdk.exception.EnzonaException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionEnzonaException(String message) Constructs a new EnzonaException with the specified detail message.EnzonaException(String message, Throwable cause) Constructs a new EnzonaException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EnzonaException
Constructs a new EnzonaException with the specified detail message.- Parameters:
message- the detail message, saved for later retrieval by the getMessage() method
-
EnzonaException
Constructs a new EnzonaException with the specified detail message and cause.- Parameters:
message- the detail message, saved for later retrieval by the getMessage() methodcause- the cause, saved for later retrieval by the getCause() method, which may be null indicating the cause is nonexistent or unknown
-