com.smartfile.api
Class SmartFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.smartfile.api.SmartFileException
All Implemented Interfaces:
java.io.Serializable

public class SmartFileException
extends java.lang.Exception

Exception generated by the library. Contains int status field which stores server status code in case of error server error, or 0 in case of internal error.

See Also:
Serialized Form

Constructor Summary
SmartFileException(java.lang.String error, int status)
           
 
Method Summary
 int getStatus()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmartFileException

public SmartFileException(java.lang.String error,
                          int status)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

getStatus

public int getStatus()