public class ErrorItem extends Object
Constructor and Description |
---|
ErrorItem(String message)
Creaet new instance.
|
ErrorItem(String message,
Exception e)
Create new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Dump the details of this ErrorItem to System.out.
|
void |
dump(PrintStream ps)
Dump the details of this ErrorItem on the specified
PrintStream . |
int |
getColNumber()
Get column number.
|
Throwable |
getException()
Get exception.
|
int |
getLineNumber()
Get line number.
|
String |
getMessage()
Get message.
|
void |
setColNumber(int colNumber)
Set column number.
|
void |
setException(Throwable exception)
Set exception.
|
void |
setLineNumber(int lineNumber)
Set line number.
|
void |
setMessage(String message)
Set message.
|
String |
toString()
String representation of ErrorItem.
|
public ErrorItem(String message, Exception e)
message
- messagee
- exceptionpublic ErrorItem(String message)
message
- message.public int getColNumber()
public void setColNumber(int colNumber)
colNumber
- new column number.public Throwable getException()
public void setException(Throwable exception)
exception
- exceptionpublic int getLineNumber()
public void setLineNumber(int lineNumber)
lineNumber
- line number.public String getMessage()
public void setMessage(String message)
message
- message.public String toString()
public void dump()
public void dump(PrintStream ps)
PrintStream
.ps
- print stream.Copyright © 2002-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.