com.google.visualization.datasource.base
Class Warning

java.lang.Object
  extended by com.google.visualization.datasource.base.Warning

public class Warning
extends java.lang.Object

A warning generated while processing a request.

Author:
Yonatan B.Y.

Constructor Summary
Warning(ReasonType reasonType, java.lang.String messageToUser)
          Constructs a new exception with a reason type and a message for the user.
 
Method Summary
 java.lang.String getMessage()
          Returns the message.
 ReasonType getReasonType()
          Returns the reason.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Warning

public Warning(ReasonType reasonType,
               java.lang.String messageToUser)
Constructs a new exception with a reason type and a message for the user.

Parameters:
reasonType - The reason type of the exception.
messageToUser - The message to the user.
Method Detail

getReasonType

public ReasonType getReasonType()
Returns the reason.

Returns:
The reason.

getMessage

public java.lang.String getMessage()
Returns the message.

Returns:
The message.


Copyright © 2009 Google. All Rights Reserved.