public class DataspaceException
extends java.lang.RuntimeException
implements com.streamscape.tools.parser.ParserPositionalException
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static DataspaceException[] |
emptyArray |
static DataspaceException |
noDataCondition |
Constructor and Description |
---|
DataspaceException(com.streamscape.tools.parser.ParserPositionalException exception) |
DataspaceException(com.streamscape.ds.result.Result r) |
DataspaceException(java.lang.String message) |
DataspaceException(java.lang.String message,
java.lang.String state,
int code) |
DataspaceException(java.lang.String message,
java.lang.Throwable cause) |
DataspaceException(java.lang.Throwable exception) |
DataspaceException(java.lang.Throwable exception,
boolean withCause) |
DataspaceException(java.lang.Throwable t,
java.lang.String errorState,
int errorCode) |
DataspaceException(java.lang.Throwable t,
java.lang.String message,
java.lang.String state,
int code) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
getErrorCode() |
java.lang.String |
getErrorMessage()
Returns error message.
|
java.lang.String |
getFullErrorMessage() |
int |
getLevel() |
java.lang.String |
getLine()
Return the line where error occured.
|
int |
getLineNumber()
Returns the line number where error occured.
|
java.lang.String |
getMessage() |
int |
getPositionInLine()
Returns position in the line where error occured.
|
java.lang.String |
getSQLState() |
int |
getStatementCode() |
int |
hashCode() |
boolean |
isLogged() |
DataspaceException |
setLevel(int level) |
void |
setLine(java.lang.String line)
Sets then line where error occured.
|
void |
setLineNumber(int lineNumber)
Sets the line number where error occured.
|
DataspaceException |
setLogged(boolean logged) |
void |
setMessage(java.lang.String message) |
void |
setPositionInLine(int positionInLine)
Sets position in the line where error occured.
|
void |
setStatementType(int group,
int code) |
java.lang.String |
toString() |
public static final DataspaceException[] emptyArray
public static final DataspaceException noDataCondition
public DataspaceException(java.lang.String message)
public DataspaceException(java.lang.Throwable exception)
public DataspaceException(java.lang.Throwable exception, boolean withCause)
public DataspaceException(com.streamscape.tools.parser.ParserPositionalException exception)
public DataspaceException(java.lang.String message, java.lang.Throwable cause)
public DataspaceException(java.lang.Throwable t, java.lang.String message, java.lang.String state, int code)
message
- Stringstate
- XOPEN / SQL code for exceptioncode
- number code in HSQLDBpublic DataspaceException(java.lang.String message, java.lang.String state, int code)
public DataspaceException(com.streamscape.ds.result.Result r)
r
- containing the memberspublic DataspaceException(java.lang.Throwable t, java.lang.String errorState, int errorCode)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void setMessage(java.lang.String message)
public java.lang.String getSQLState()
public int getErrorCode()
public DataspaceException setLevel(int level)
public int getLevel()
public int getStatementCode()
public void setStatementType(int group, int code)
public void setLineNumber(int lineNumber)
com.streamscape.tools.parser.ParserPositionalException
setLineNumber
in interface com.streamscape.tools.parser.ParserPositionalException
lineNumber
- line number, starting at 1public int getLineNumber()
com.streamscape.tools.parser.ParserPositionalException
getLineNumber
in interface com.streamscape.tools.parser.ParserPositionalException
public void setLine(java.lang.String line)
com.streamscape.tools.parser.ParserPositionalException
setLine
in interface com.streamscape.tools.parser.ParserPositionalException
public java.lang.String getLine()
com.streamscape.tools.parser.ParserPositionalException
getLine
in interface com.streamscape.tools.parser.ParserPositionalException
public int getPositionInLine()
com.streamscape.tools.parser.ParserPositionalException
getPositionInLine
in interface com.streamscape.tools.parser.ParserPositionalException
public void setPositionInLine(int positionInLine)
com.streamscape.tools.parser.ParserPositionalException
setPositionInLine
in interface com.streamscape.tools.parser.ParserPositionalException
positionInLine
- position in the line starting at 1public java.lang.String getErrorMessage()
com.streamscape.tools.parser.ParserPositionalException
getErrorMessage
in interface com.streamscape.tools.parser.ParserPositionalException
public java.lang.String getFullErrorMessage()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Throwable
public boolean isLogged()
public DataspaceException setLogged(boolean logged)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.