org.moremotion.exception
Class MoreMotionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.moremotion.exception.MoreMotionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ADOMException, AuthenticationException, AuthorizationException, CLException, ConditionEvaluationException, DeleteSecurityEntityException, EvaluationException, JdbcConnectionException, MissingSecurityEntityException, MScriptException, NoUserAttachedException, ProcessException, ProcessManagingException, ResourceException, SaveSecurityEntityException, SecurityBrokerException, SecurityContextException, ServiceException

public class MoreMotionException
extends java.lang.Exception

Version:
$Id: MoreMotionException.java 51 2008-03-10 11:46:54Z erkan $
See Also:
Serialized Form

Constructor Summary
MoreMotionException(java.lang.Exception rootCause)
          Creates a new MoreMotionException.
MoreMotionException(java.lang.String message)
          Creates a new MoreMotionException.
MoreMotionException(java.lang.String messsage, java.lang.String[] arguments, java.lang.Exception rootCause)
          Creates a new MoreMotionException.
MoreMotionException(java.lang.String message, java.lang.String[] arguments, java.lang.Exception rootCause, java.lang.String resBundleName)
          Creates a new MoreMotionException.
 
Method Summary
 java.lang.String[] getArguments()
           
 java.lang.String getLocalizedMessage(java.lang.String language)
          Returns a localized message using resources.
 java.lang.String getMessage()
          Returns the message.
 java.sql.SQLException getOriginalSQLException()
          Returns the original error code that caused the exception.
 java.lang.String getResBundleName()
          Returns resource name.
 java.lang.String getResourceMessage(boolean resolve)
           
 java.lang.Exception getRootCause()
          Returns root cause.
 void printStackTrace()
          Prints stack trace with the r oot cause's stack trace.
 void printStackTrace(java.io.PrintStream ps)
          Prints stack trace with the root cause's stack trace.
 void printStackTrace(java.io.PrintWriter pw)
          Prints stack trace with the root cause's stack trace.
 void setResBundleName(java.lang.String resBundleName)
          sets resource name.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoreMotionException

public MoreMotionException(java.lang.Exception rootCause)
Creates a new MoreMotionException.


MoreMotionException

public MoreMotionException(java.lang.String message)
Creates a new MoreMotionException.


MoreMotionException

public MoreMotionException(java.lang.String message,
                           java.lang.String[] arguments,
                           java.lang.Exception rootCause,
                           java.lang.String resBundleName)
Creates a new MoreMotionException.

Parameters:
message - Exception message.
arguments - message argument array.
rootCause - The Exception that caused this Exception to be thrown
resBundleName - resBundleName to get localized messages

MoreMotionException

public MoreMotionException(java.lang.String messsage,
                           java.lang.String[] arguments,
                           java.lang.Exception rootCause)
Creates a new MoreMotionException. The resource bundle name is defaulted as "moremotion".

Parameters:
messsage - Exception message.
arguments - message argument array.
rootCause - The Exception that caused this Exception to be thrown
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.lang.String language)
                                     throws java.lang.Exception
Returns a localized message using resources.

Throws:
java.lang.Exception

getResourceMessage

public java.lang.String getResourceMessage(boolean resolve)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getMessage

public java.lang.String getMessage()
Returns the message.

Overrides:
getMessage in class java.lang.Throwable

getArguments

public java.lang.String[] getArguments()

getRootCause

public java.lang.Exception getRootCause()
Returns root cause.


setResBundleName

public void setResBundleName(java.lang.String resBundleName)
sets resource name.


getResBundleName

public java.lang.String getResBundleName()
Returns resource name.


printStackTrace

public void printStackTrace()
Prints stack trace with the r oot cause's stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints stack trace with the root cause's stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints stack trace with the root cause's stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

getOriginalSQLException

public java.sql.SQLException getOriginalSQLException()
Returns the original error code that caused the exception.



Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.