Class Message
java.lang.Object
com.northconcepts.datapipeline.core.Message
A diagnostic message with a severity level, an optional exception or stack trace, and the time and thread it was created
on; collected by
Messages.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMessage(Message.Level level, String message) Creates a message without an exception or stack trace.Message(Message.Level level, String message, boolean recordStackTrace) Creates a message without an exception, optionally capturing the caller's current stack trace.Message(Message.Level level, String message, Throwable exception) Message(Message.Level level, Throwable exception) Creates a message that uses the exception's message as its text. -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception attached to this message or null if there is none.getLevel()Returns the exception, or theThrowablecaptured at creation, whose stack trace belongs to this message; null if none.Returns the name of the thread that created this message.Returns the time this message was created.toString()
-
Constructor Details
-
Message
-
Message
Creates a message that uses the exception's message as its text. -
Message
Creates a message without an exception, optionally capturing the caller's current stack trace. -
Message
Creates a message without an exception or stack trace.
-
-
Method Details
-
getTimestamp
Returns the time this message was created. -
getLevel
-
getThread
Returns the name of the thread that created this message. -
getMessage
-
getStackTrace
Returns the exception, or theThrowablecaptured at creation, whose stack trace belongs to this message; null if none. -
getException
Returns the exception attached to this message or null if there is none. -
toString
-