sk.baka.ambient.collection.ampache
Class AmpacheException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by sk.baka.ambient.collection.ampache.AmpacheException
All Implemented Interfaces:
Serializable

public final class AmpacheException
extends Exception

Error communicating with ampache.

Author:
Martin Vysny
See Also:
Serialized Form

Field Summary
 String errorCode
          The error code.
 String errorMsg
          The error message.
 
Constructor Summary
AmpacheException(String errorCode, String errorMsg)
          Creates new exception from given error code.
 
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
 

Field Detail

errorMsg

public final String errorMsg
The error message.


errorCode

public final String errorCode
The error code.

Constructor Detail

AmpacheException

public AmpacheException(String errorCode,
                        String errorMsg)
Creates new exception from given error code.

Parameters:
errorCode - the code
errorMsg - error message as sent from the server.


Copyright © 2007-2008. All Rights Reserved.