com.google.visualization.datasource.base
Class Warning

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

public class Warning
extends Object

A warning generated while processing a request.

Author:
Yonatan B.Y.

Constructor Summary
Warning(ReasonType reasonType, String messageToUser)
          Constructs a new exception with a reason type and a message for the user.
 
Method Summary
 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,
               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 String getMessage()
Returns the message.

Returns:
The message.


Copyright © 2012 Google. All Rights Reserved.