org.apache.shindig.protocol
Class ProtocolException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shindig.protocol.ProtocolException
All Implemented Interfaces:
Serializable

public class ProtocolException
extends RuntimeException

Unchecked exception class for errors thrown by request handlers

See Also:
Serialized Form

Constructor Summary
ProtocolException(int errorCode, String errorMessage)
           
ProtocolException(int errorCode, String errorMessage, Object response)
           
ProtocolException(int errorCode, String errorMessage, Throwable cause)
           
 
Method Summary
 int getCode()
           
 Object getResponse()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

ProtocolException

public ProtocolException(int errorCode,
                         String errorMessage,
                         Throwable cause)

ProtocolException

public ProtocolException(int errorCode,
                         String errorMessage)

ProtocolException

public ProtocolException(int errorCode,
                         String errorMessage,
                         Object response)
Method Detail

getCode

public int getCode()

getResponse

public Object getResponse()


Copyright © 2007-2012. All Rights Reserved.