org.springframework.extensions.surf.exception
Class PlatformRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.extensions.surf.exception.PlatformRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigException, PHPProcessorException, ScriptException, WebScriptException, WebScriptsPlatformException

public class PlatformRuntimeException
extends RuntimeException

Base exception for Spring Surf platform (i18n enabled)

Author:
gavinc
See Also:
Serialized Form

Constructor Summary
PlatformRuntimeException(String msgId)
          Constructor
PlatformRuntimeException(String msgId, Object[] msgParams)
          Constructor
PlatformRuntimeException(String msgId, Object[] msgParams, Throwable cause)
          Constructor
PlatformRuntimeException(String msgId, Throwable cause)
          Constructor
 
Method Summary
static PlatformRuntimeException create(String msgId, Object... objects)
          Helper factory method making use of variable argument numbers
static PlatformRuntimeException create(Throwable cause, String msgId, Object... objects)
          Helper factory method making use of variable argument numbers
static RuntimeException makeRuntimeException(Throwable e, String msgId, Object... objects)
          Utility to convert a general Throwable to a RuntimeException.
 
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

PlatformRuntimeException

public PlatformRuntimeException(String msgId)
Constructor

Parameters:
msgId - the message id

PlatformRuntimeException

public PlatformRuntimeException(String msgId,
                                Object[] msgParams)
Constructor

Parameters:
msgId - the message id
msgParams - the message parameters

PlatformRuntimeException

public PlatformRuntimeException(String msgId,
                                Throwable cause)
Constructor

Parameters:
msgId - the message id
cause - the exception cause

PlatformRuntimeException

public PlatformRuntimeException(String msgId,
                                Object[] msgParams,
                                Throwable cause)
Constructor

Parameters:
msgId - the message id
msgParams - the message parameters
cause - the exception cause
Method Detail

create

public static PlatformRuntimeException create(String msgId,
                                              Object... objects)
Helper factory method making use of variable argument numbers


create

public static PlatformRuntimeException create(Throwable cause,
                                              String msgId,
                                              Object... objects)
Helper factory method making use of variable argument numbers


makeRuntimeException

public static RuntimeException makeRuntimeException(Throwable e,
                                                    String msgId,
                                                    Object... objects)
Utility to convert a general Throwable to a RuntimeException. No conversion is done if the throwable is already a RuntimeException.

See Also:
create(Throwable, String, Object...)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.