|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.LogEntry
A log entry. This class holds all the details in an error or a warning log entry.
Field Summary | |
static int |
ERROR
The error log entry type constant. |
static int |
INTERNAL_ERROR
The internal error log entry type constant. |
static int |
WARNING
The warning log entry type constant. |
Constructor Summary | |
LogEntry(int type,
FileLocation location,
java.lang.String message)
Creates a new log entry. |
Method Summary | |
int |
getColumnNumber()
Returns the column number. |
java.io.File |
getFile()
Returns the file this entry applies to. |
int |
getLineNumber()
Returns the line number. |
java.lang.String |
getMessage()
Returns the log entry message. |
int |
getType()
Returns the log entry type. |
boolean |
isError()
Checks if this is an error log entry. |
boolean |
isWarning()
Checks if this is a warning log entry. |
java.lang.String |
readLine()
Reads the line from the referenced file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INTERNAL_ERROR
public static final int ERROR
public static final int WARNING
Constructor Detail |
public LogEntry(int type, FileLocation location, java.lang.String message)
type
- the log entry typelocation
- the log entry file referencemessage
- the log entry messageMethod Detail |
public boolean isError()
public boolean isWarning()
public int getType()
INTERNAL_ERROR
,
ERROR
,
WARNING
public java.io.File getFile()
public int getLineNumber()
public int getColumnNumber()
public java.lang.String getMessage()
public java.lang.String readLine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |