Package com.unboundid.util
Class LDAPSDKRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.unboundid.util.LDAPSDKRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
LDAPRuntimeException
,LDAPSDKUsageException
@NotExtensible @ThreadSafety(level=COMPLETELY_THREADSAFE) public abstract class LDAPSDKRuntimeException extends java.lang.RuntimeException
This class serves as the base class for all custom runtime exception types defined in the LDAP SDK.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LDAPSDKRuntimeException(java.lang.String message)
Creates a new instance of this exception with the provided message.protected
LDAPSDKRuntimeException(java.lang.String message, java.lang.Throwable cause)
Creates a new instance of this exception with the provided message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExceptionMessage()
Retrieves a string representation of this exception suitable for use in messages.java.lang.String
getExceptionMessage(boolean includeCause, boolean includeStackTrace)
Retrieves a string representation of this exception suitable for use in messages.java.lang.String
toString()
Retrieves a string representation of this exception.void
toString(java.lang.StringBuilder buffer)
Appends a string representation of this exception to the provided buffer.
-
-
-
Constructor Detail
-
LDAPSDKRuntimeException
protected LDAPSDKRuntimeException(java.lang.String message)
Creates a new instance of this exception with the provided message.- Parameters:
message
- The message to use for this exception.
-
LDAPSDKRuntimeException
protected LDAPSDKRuntimeException(java.lang.String message, java.lang.Throwable cause)
Creates a new instance of this exception with the provided message and cause.- Parameters:
message
- The message to use for this exception.cause
- The underlying cause for this exception. It may benull
if no cause is available.
-
-
Method Detail
-
toString
public final java.lang.String toString()
Retrieves a string representation of this exception.- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- A string representation of this exception.
-
toString
public void toString(java.lang.StringBuilder buffer)
Appends a string representation of this exception to the provided buffer.- Parameters:
buffer
- The buffer to which the string representation of this exception is to be appended.
-
getExceptionMessage
public java.lang.String getExceptionMessage()
Retrieves a string representation of this exception suitable for use in messages.- Returns:
- A string representation of this exception suitable for use in messages.
-
getExceptionMessage
public java.lang.String getExceptionMessage(boolean includeCause, boolean includeStackTrace)
Retrieves a string representation of this exception suitable for use in messages.- Parameters:
includeCause
- Indicates whether to include information about the cause (if any) in the exception message.includeStackTrace
- Indicates whether to include a condensed representation of the stack trace in the exception message.- Returns:
- A string representation of this exception suitable for use in messages.
-
-