net.anidb.udp
Class AniDbException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.anidb.udp.AniDbException
All Implemented Interfaces:
java.io.Serializable

public class AniDbException
extends java.lang.Exception

Thrown if a problem with AniDB occurs.

This is the case if AniDB responds with an error code.

Version:
1.0, 03.12.2009
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)
See Also:
Serialized Form

Constructor Summary
AniDbException(int returnCode, java.lang.String returnString, java.lang.String messageString)
          Creates an exception.
 
Method Summary
 java.lang.String getMessageString()
          Return ths message string.
 int getReturnCode()
          Returns the return code.
 java.lang.String getReturnString()
          Returns the return string.
 
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

AniDbException

public AniDbException(int returnCode,
                      java.lang.String returnString,
                      java.lang.String messageString)
Creates an exception.

Parameters:
returnCode - The return code.
returnString - The return string.
messageString - The message string.
Throws:
java.lang.IllegalArgumentException - If the return string is null.
Method Detail

getReturnCode

public int getReturnCode()
Returns the return code.

Returns:
The return code.
See Also:
UdpReturnCodes

getReturnString

public java.lang.String getReturnString()
Returns the return string.

Returns:
The return string.

getMessageString

public java.lang.String getMessageString()
Return ths message string.

Returns:
The message string or null, if it isn't set.