Package com.vivoka.vsdk
Class Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vivoka.vsdk.Exception
- All Implemented Interfaces:
Serializable
Base class for all exceptions thrown by the VSDK
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidGet a formatted message for the exception.voidLog the exception with a formatted message The method outputs the exception's message and then recursively traverses its cause chain (if any), printing each cause's message in order.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Exception
Create a new exception- Parameters:
message- The message of the exception
-
Exception
Create a new exception with a message and a cause- Parameters:
message- The message of the exceptioncause- The cause of the exception
-
-
Method Details
-
printFormattedMessage
public void printFormattedMessage()Log the exception with a formatted message The method outputs the exception's message and then recursively traverses its cause chain (if any), printing each cause's message in order. This allows you to easily inspect the full error context leading up to the root cause. Example: Something happened * message * cause message * cause cause message -
getFormattedMessage
Get a formatted message for the exception.- Returns:
- The returned string contains the exception's message followed by the
messages of its causal chain (if any). Each nested cause is appended
recursively in order, providing a human-readable trace of the error
context down to the root cause.
Example:
Something happened * message * cause message * cause cause message
-
bAssert
- Throws:
Exception
-
cAssert
- Throws:
Exception
-
fAssert
- Throws:
Exception
-