@Immutable public class IOMessageImpl extends MessageImpl implements IOMessage
IOMessage
implementationModifier | Constructor and Description |
---|---|
|
IOMessageImpl(String message,
Throwable throwable)
Create a new message
|
|
IOMessageImpl(String message,
Throwable throwable,
int lineNumber,
int column)
Create a new message
|
|
IOMessageImpl(String pattern,
Throwable throwable,
int lineNumber,
int column,
Object... arguments)
Create a new message and format it using
MessageFormat |
protected |
IOMessageImpl(String message,
Throwable throwable,
String stackTrace,
int lineNumber,
int column)
Create a new message
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Get the column the message refers to
|
String |
getFormattedMessage()
Get the formatted message string with additional informations.
|
int |
getLineNumber()
Get the line number the message refers to
|
getMessage, getStackTrace, getThrowable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getStackTrace, getThrowable
public IOMessageImpl(String message, Throwable throwable)
message
- the message stringthrowable
- the associated throwable, may be null
public IOMessageImpl(String message, Throwable throwable, int lineNumber, int column)
message
- the message stringthrowable
- the associated throwable, may be null
lineNumber
- the line number in the file, -1
for nonecolumn
- the column in the line, -1
for noneprotected IOMessageImpl(String message, Throwable throwable, String stackTrace, int lineNumber, int column)
message
- the message stringthrowable
- the associated throwable, may be null
stackTrace
- the associated stack trace, or null
lineNumber
- the line number in the file, -1
for nonecolumn
- the column in the line, -1
for nonepublic IOMessageImpl(String pattern, Throwable throwable, int lineNumber, int column, Object... arguments)
MessageFormat
pattern
- the message format patternthrowable
- the associated throwable, may be null
lineNumber
- the line number in the file, -1
for nonecolumn
- the column in the line, -1
for nonearguments
- the arguments for the message formatpublic int getColumn()
IOMessage
getColumn
in interface IOMessage
-1
if no column is referencedIOMessage.getColumn()
public int getLineNumber()
IOMessage
getLineNumber
in interface IOMessage
-1
if no line is referencedIOMessage.getLineNumber()
public String getFormattedMessage()
Message
getFormattedMessage
in interface Message
getFormattedMessage
in class MessageImpl
Message.getFormattedMessage()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a