org.sbml.jsbml
public class SBMLError extends XMLException
Modifier and Type | Class and Description |
---|---|
static class |
SBMLError.SEVERITY |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
category |
private int |
code |
private Detail |
detail |
private java.lang.String |
excerpt |
private Location |
location |
private Message |
message |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
severity |
private Message |
shortmessage |
Constructor and Description |
---|
SBMLError()
Constructs a new
SBMLError . |
SBMLError(java.lang.String message)
Constructs a new
SBMLError with the given message. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
Returns the category of the
SBMLError |
int |
getCode()
Returns the code of this
SBMLError . |
int |
getColumn()
Returns the column where this
SBMLError happened. |
Detail |
getDetail() |
java.lang.String |
getExcerpt()
Returns a fragment of the original XML file that induced the error.
|
int |
getLine()
Returns the line where this
SBMLError happened. |
Location |
getLocation()
Returns the location where this
SBMLError happened. |
java.lang.String |
getMessage()
Returns the message of the
SBMLError |
Message |
getMessageInstance() |
java.lang.String |
getSeverity()
Returns the severity of the
SBMLError |
Message |
getShortMessage() |
boolean |
isError()
Returns true is the
SBMLError severity is of type SBMLError.SEVERITY.ERROR |
boolean |
isFatal()
Returns true is the
SBMLError severity is of type SBMLError.SEVERITY.FATAL |
boolean |
isInfo()
Returns true is the
SBMLError severity is of type SBMLError.SEVERITY.INFO |
boolean |
isInternal()
Returns true is the
SBMLError category is of type internal |
boolean |
isSystem()
Returns true is the
SBMLError category is of type system |
boolean |
isWarning()
Returns true is the
SBMLError severity is of type SBMLError.SEVERITY.WARNING |
boolean |
isXML()
Returns true is the
SBMLError category is of type xml |
void |
setCategory(java.lang.String category)
Sets the category of this
SBMLError . |
void |
setCode(int code)
Sets the error code of this
SBMLError . |
void |
setDetail(Detail detail) |
void |
setExcerpt(java.lang.String excerpt)
Sets the excerpt of this
SBMLError . |
void |
setLocation(Location location)
Sets the location of this
SBMLError . |
void |
setMessage(Message message)
Sets the message of this
SBMLError . |
void |
setSeverity(java.lang.String severity)
Sets the severity of this
SBMLError . |
void |
setShortMessage(Message shortmessage) |
java.lang.String |
toString() |
getErrorId
private static final long serialVersionUID
private java.lang.String category
private int code
private java.lang.String excerpt
private Location location
private Message message
private Message shortmessage
private Detail detail
private java.lang.String severity
public SBMLError()
SBMLError
.public SBMLError(java.lang.String message)
SBMLError
with the given message.message
- the error messagepublic java.lang.String getCategory()
SBMLError
SBMLError
public int getCode()
SBMLError
.SBMLError
.appendix on the SBML specifications about validations rules.
public int getColumn()
SBMLError
happened.SBMLError
happened.public java.lang.String getExcerpt()
public int getLine()
SBMLError
happened.SBMLError
happened.public Location getLocation()
SBMLError
happened.SBMLError
happened.public Message getMessageInstance()
public java.lang.String getMessage()
SBMLError
getMessage
in class java.lang.Throwable
SBMLError
public java.lang.String getSeverity()
SBMLError
SBMLError
public boolean isFatal()
SBMLError
severity is of type SBMLError.SEVERITY.FATAL
SBMLError
severity is of type SBMLError.SEVERITY.FATAL
public boolean isError()
SBMLError
severity is of type SBMLError.SEVERITY.ERROR
SBMLError
severity is of type SBMLError.SEVERITY.ERROR
public boolean isInfo()
SBMLError
severity is of type SBMLError.SEVERITY.INFO
SBMLError
severity is of type SBMLError.SEVERITY.INFO
public boolean isWarning()
SBMLError
severity is of type SBMLError.SEVERITY.WARNING
SBMLError
severity is of type SBMLError.SEVERITY.WARNING
public boolean isInternal()
SBMLError
category is of type internal
SBMLError
category is of type internal
public boolean isSystem()
SBMLError
category is of type system
SBMLError
category is of type system
public boolean isXML()
SBMLError
category is of type xml
SBMLError
category is of type xml
public void setCategory(java.lang.String category)
SBMLError
.category
- public void setCode(int code)
SBMLError
.code
- appendix on the SBML specifications about validations rules.
public void setExcerpt(java.lang.String excerpt)
SBMLError
.excerpt
- public void setLocation(Location location)
SBMLError
.location
- public void setMessage(Message message)
SBMLError
.messageObj
- public void setSeverity(java.lang.String severity)
SBMLError
.severity
- public Message getShortMessage()
public void setShortMessage(Message shortmessage)
public Detail getDetail()
public void setDetail(Detail detail)
public java.lang.String toString()
toString
in class java.lang.Throwable