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 © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.