|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.google.visualization.datasource.base.DataSourceException
public class DataSourceException
An exception to be used by callers and callees of the library.
Each exception has a type taken from ReasonType, and a
message that can be used to output an appropriate message to the user.
Example:
new DataSourceException(ReasonType.InvalidQuery, "The query cannot be empty")
| Constructor Summary | |
|---|---|
DataSourceException(ReasonType reasonType,
java.lang.String messageToUser)
Constructs a new exception with a single message for the user. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Deprecated. |
java.lang.String |
getMessageToUser()
Returns the message for the user. |
ReasonType |
getReasonType()
Returns the reason type of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceException(ReasonType reasonType,
java.lang.String messageToUser)
reasonType - The reason type of the exception.messageToUser - The message for the user.| Method Detail |
|---|
public java.lang.String getMessageToUser()
public ReasonType getReasonType()
@Deprecated public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||