com.rocketsoftware.mvapi.exceptions
Class MVException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by com.rocketsoftware.mvapi.exceptions.MVException
All Implemented Interfaces:
java.io.Serializable

public class MVException
extends java.sql.SQLException

Exception handling for MV API

See Also:
Serialized Form

Constructor Summary
MVException(java.lang.Exception e)
          MVException constructor from an exception
MVException(java.lang.Exception e, java.lang.String errorMessage, int errorCode)
          MVException constructor from an exception
MVException(java.lang.String errorMessage)
          MVException constructor with an error string
MVException(java.lang.String errorMessage, int errorCode)
          MVException constructor with an error string and error code
 
Method Summary
 int getErrorCode()
          get the error code
 java.lang.String getErrorMessage()
          get the error message
 java.lang.Exception getException()
          get the original exception if any
 
Methods inherited from class java.sql.SQLException
getNextException, getSQLState, setNextException
 
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

MVException

public MVException(java.lang.Exception e)
MVException constructor from an exception


MVException

public MVException(java.lang.Exception e,
                   java.lang.String errorMessage,
                   int errorCode)
MVException constructor from an exception


MVException

public MVException(java.lang.String errorMessage)
MVException constructor with an error string

Parameters:
errorMessage - error description

MVException

public MVException(java.lang.String errorMessage,
                   int errorCode)
MVException constructor with an error string and error code

Parameters:
errorMessage - error message
errorCode - error code from MVErrors list
Method Detail

getException

public java.lang.Exception getException()
get the original exception if any

Returns:
exception causing this exception to be raised

getErrorMessage

public java.lang.String getErrorMessage()
get the error message

Returns:
error message string

getErrorCode

public int getErrorCode()
get the error code

Overrides:
getErrorCode in class java.sql.SQLException
Returns:
error code