public class Helpers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_INSTANCE_DELIMITER
The delimiter of class names and instances.
|
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureNotNull(java.lang.Object object,
java.lang.String objectName)
Verify the passed object is not null.
|
static void |
logExceptionInClientCallback(FsmLogger logger,
java.lang.String message,
java.lang.RuntimeException exception)
Log runtime exception that occurred in client callback.
|
static void |
logThreadUnexpectedlyFinished(FsmLogger logger,
java.lang.String message,
java.lang.Throwable exception)
Log that a serious error occurred and the currently running thread is
being unexpectedly terminated.
|
public static final java.lang.String CLASS_INSTANCE_DELIMITER
public static void ensureNotNull(java.lang.Object object,
java.lang.String objectName)
throws java.lang.NullPointerException
object - the objectobjectName - the object namejava.lang.NullPointerException - if the object is nullpublic static void logExceptionInClientCallback(FsmLogger logger, java.lang.String message, java.lang.RuntimeException exception)
logger - the loggermessage - the message to logexception - the exception that occurredTimeoutStateMachinepublic static void logThreadUnexpectedlyFinished(FsmLogger logger, java.lang.String message, java.lang.Throwable exception)
logger - the logger for loggingmessage - the message to logexception - the exception that occurredCopyright 2013 Michal Turek, AnotherFSM.