com.betfair.games
Class ApiAdapterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.betfair.games.ApiAdapterException
All Implemented Interfaces:
java.io.Serializable

public class ApiAdapterException
extends java.lang.Exception

The ApiAdapterException is thrown from all com.betfair.games classes when unexpected events occur, sending a message to the developer. In this version ApiAdapterException is expected to result in termination of the application and not to be used for error handling during execution.

Version:
1.0.1
Author:
M Larsson
See Also:
Serialized Form

Constructor Summary
ApiAdapterException()
          Constructs a ApiAdapterException to be thrown without message for the developer.
ApiAdapterException(java.lang.String message)
          Constructs an ApiAdapterException to be thrown when the ApiAdapter is not working properly and is it recommended that the application is terminated and the developer troubleshoot the application.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiAdapterException

public ApiAdapterException()
Constructs a ApiAdapterException to be thrown without message for the developer. Instead a default message is added.


ApiAdapterException

public ApiAdapterException(java.lang.String message)
Constructs an ApiAdapterException to be thrown when the ApiAdapter is not working properly and is it recommended that the application is terminated and the developer troubleshoot the application.

Parameters:
message - describing the cause behind throwing the exception.