com.google.gwt.gadgets.client.osapi
Class OsapiError

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.gadgets.client.osapi.OsapiError

public class OsapiError
extends com.google.gwt.core.client.JavaScriptObject

A class encapsulating the information about the error.


Constructor Summary
protected OsapiError()
          Required by JavaScriptObject policy.
 
Method Summary
 int getCode()
          Returns a code that indicates the actual error that occurred.
 java.lang.String getMessage()
          Returns a String providing a short description of the error.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsapiError

protected OsapiError()
Required by JavaScriptObject policy.

Method Detail

getCode

public final int getCode()
Returns a code that indicates the actual error that occurred.

Returns:
A code that indicates the actual error that occurred.

getMessage

public final java.lang.String getMessage()
Returns a String providing a short description of the error.

Returns:
A String providing a short description of the error.