edu.washington.cs.sounddetector.server.api.exception
Class SoundDetectorAPIException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.washington.cs.sounddetector.server.api.exception.SoundDetectorAPIException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CantBuildClassifierException, DetectorDoesNotExistException, PhoneDoesNotExistException, SoundClassDoesNotExistException, SoundDoesNotExistException

public abstract class SoundDetectorAPIException
extends Exception

Base class for all exceptions thrown by server api calls. Subclass this if you need to provide an exception on the client side for a failure case of a method.

Subclasses should have a descriptive name which clearly describes the error. They should provide a single constructor which takes all the necessary data for a client to figure out exactly what went wrong, and provide getter methods for this data. Also, make sure to call the super constructor.

Author:
the.dylan.price@gmail.com
See Also:
Serialized Form

Constructor Summary
SoundDetectorAPIException()
           
SoundDetectorAPIException(String message)
           
SoundDetectorAPIException(String message, Throwable throwable)
           
SoundDetectorAPIException(Throwable throwable)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoundDetectorAPIException

public SoundDetectorAPIException()

SoundDetectorAPIException

public SoundDetectorAPIException(String message)

SoundDetectorAPIException

public SoundDetectorAPIException(Throwable throwable)

SoundDetectorAPIException

public SoundDetectorAPIException(String message,
                                 Throwable throwable)


Copyright © 2012. All Rights Reserved.