org.slim3.commons.exception
Class SRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.slim3.commons.exception.SRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AroundInvokeMethodNotFoundRuntimeException, AroundInvokeMethodSignatureRuntimeException, BindingFailureRuntimeException, BindingNotFoundRuntimeException, CanNotInvokeAbstractMethodRuntimeException, CastRuntimeException, ClassCanNotAssignedRuntimeException, ClassNotFoundRuntimeException, ConverterRuntimeException, DuplicateAroundInvokeRuntimeException, IllegalAccessRuntimeException, InstantiationRuntimeException, InterceptorsAnnotationRuntimeException, InterceptorsConfigurationRuntimeException, NamingRuntimeException, NoSuchMethodRuntimeException, ParseRuntimeException, PropertyCanNotReadRuntimeException, PropertyCanNotWriteRuntimeException, PropertyNotFoundRuntimeException, PropertyNotReadableRuntimeException, PropertyNotWritableRuntimeException, ResourceInterceptorRuntimeException

public class SRuntimeException
extends RuntimeException

A base runtime exception.

Since:
3.0
Author:
higa
See Also:
Serialized Form

Constructor Summary
SRuntimeException(String messageCode, Object... args)
          Constructor.
SRuntimeException(Throwable cause, String messageCode, Object... args)
          Constructor.
 
Method Summary
protected static String convertCauseMessage(Throwable cause)
          Converts the cause to a message.
 Object[] getArgs()
          Returns the arguments.
 String getMessageCode()
          Returns the message code.
 
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
 

Constructor Detail

SRuntimeException

public SRuntimeException(String messageCode,
                         Object... args)
Constructor.

Parameters:
messageCode - the message code
args - the arguments

SRuntimeException

public SRuntimeException(Throwable cause,
                         String messageCode,
                         Object... args)
Constructor.

Parameters:
cause - the cause
messageCode - the message code
args - the arguments
Method Detail

convertCauseMessage

protected static String convertCauseMessage(Throwable cause)
Converts the cause to a message.

Parameters:
cause - the cause.
Returns:
a message.

getMessageCode

public String getMessageCode()
Returns the message code.

Returns:
the message code

getArgs

public Object[] getArgs()
Returns the arguments.

Returns:
the arguments


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.