Package me.kzlyth.api.exceptions
Klasse ZenithAPIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.kzlyth.api.exceptions.ZenithAPIException
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
APIUnavailableException
Base exception class for all API-related exceptions in Zenith-Mod.
This exception is thrown when an API call fails or encounters an error. All API exceptions should extend this class.
Example:
try {
// Some API operation
} catch (ZenithAPIException e) {
getLogger().severe("API error: " + e.getMessage());
e.printStackTrace();
}
- Seit:
- 1.2.3
- Autor:
- Zenith-Studios
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs a new ZenithAPIException with no detail message.ZenithAPIException(@Nullable String message) Constructs a new ZenithAPIException with the specified detail message.ZenithAPIException(@Nullable String message, @Nullable Throwable cause) Constructs a new ZenithAPIException with the specified detail message and cause.ZenithAPIException(@Nullable Throwable cause) Constructs a new ZenithAPIException with the specified cause. -
Methodenübersicht
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
ZenithAPIException
public ZenithAPIException()Constructs a new ZenithAPIException with no detail message.Example:
throw new ZenithAPIException(); -
ZenithAPIException
Constructs a new ZenithAPIException with the specified detail message.Example:
throw new ZenithAPIException("Failed to process ban request");- Parameter:
message- The detail message
-
ZenithAPIException
Constructs a new ZenithAPIException with the specified detail message and cause.Example:
try { // Some operation that might fail } catch (SQLException e) { throw new ZenithAPIException("Database error occurred", e); }- Parameter:
message- The detail messagecause- The cause of this exception
-
ZenithAPIException
Constructs a new ZenithAPIException with the specified cause.Example:
try { // Some operation } catch (Exception e) { throw new ZenithAPIException(e); }- Parameter:
cause- The cause of this exception
-