railo.runtime.op
Class ExceptonImpl

java.lang.Object
  extended by railo.runtime.op.ExceptonImpl
All Implemented Interfaces:
Excepton

public final class ExceptonImpl
extends Object
implements Excepton

Implementation of Exception Util


Field Summary
 
Fields inherited from interface railo.runtime.util.Excepton
TYPE_ABORT, TYPE_ABORT_EXP, TYPE_APPLICATION_EXP, TYPE_CASTER_EXP, TYPE_CUSTOM_TYPE_EXP, TYPE_DATABASE_EXP, TYPE_EXPRESSION_EXP, TYPE_FUNCTION_EXP, TYPE_LOCK_EXP, TYPE_MISSING_INCLUDE_EXP, TYPE_NATIVE_EXP, TYPE_SECURITY_EXP, TYPE_TEMPLATE_EXP, TYPE_XML_EXP
 
Constructor Summary
ExceptonImpl()
           
 
Method Summary
 PageException createAbort()
          create exception "Abort"
 PageException createAbortException(String showError)
          create exception "AbortException"
 PageException createApplicationException(String message)
          create exception "ApplicationException"
 PageException createApplicationException(String message, String detail)
          create exception "ApplicationException"
 PageException createCasterException(String message)
          create exception "CasterException"
 PageException createCustomTypeException(String message, String detail, String errorcode, String customType)
          create exception "CustomTypeException"
 PageException createCustomTypeException(String message, String detail, String errorcode, String customType, String extendedInfo)
           
 PageException createDatabaseException(String message)
          create exception "DatabaseException"
 PageException createDatabaseException(String message, SQL sql)
          create exception "DatabaseException"
 PageException createDatabaseException(String message, String detail)
          create exception "DatabaseException"
 PageException createExpressionException(String message)
          create exception "ExpressionException"
 PageException createExpressionException(String message, String detail)
          create exception "ExpressionException"
 PageException createFunctionException(PageContext pc, String functionName, int badArgumentPosition, String badArgumentName, String message, String detail)
          create exception "FunctionException"
 PageException createFunctionException(PageContext pc, String functionName, String badArgumentPosition, String badArgumentName, String message)
          create exception "FunctionException"
 PageException createLockException(String operation, String name, String message)
          create exception "LockException"
 PageException createMissingIncludeException(PageSource ps)
          create exception "LockException"
 PageException createNativeException(Throwable t)
          create exception "NativeException"
 PageException createSecurityException(String message)
          create exception "SecurityException"
 PageException createSecurityException(String message, String detail)
          create exception "SecurityException"
 PageException createTemplateException(String message)
          create exception "TemplateException"
 PageException createTemplateException(String message, String detail)
          create exception "TemplateException"
 PageException createXMLException(String message)
          create exception "XMLException"
 PageException createXMLException(String message, String detail)
          create exception "XMLException"
static Excepton getInstance()
           
 boolean isOfType(int type, Throwable t)
          check if exception is of given type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptonImpl

public ExceptonImpl()
Method Detail

getInstance

public static Excepton getInstance()
Returns:
singleton instance

createAbort

public PageException createAbort()
Description copied from interface: Excepton
create exception "Abort"

Specified by:
createAbort in interface Excepton
Returns:
Abort

createAbortException

public PageException createAbortException(String showError)
Description copied from interface: Excepton
create exception "AbortException"

Specified by:
createAbortException in interface Excepton
Returns:
AbortException

createApplicationException

public PageException createApplicationException(String message)
Description copied from interface: Excepton
create exception "ApplicationException"

Specified by:
createApplicationException in interface Excepton
Returns:
ApplicationException

createApplicationException

public PageException createApplicationException(String message,
                                                String detail)
Description copied from interface: Excepton
create exception "ApplicationException"

Specified by:
createApplicationException in interface Excepton
Returns:
ApplicationException

createCasterException

public PageException createCasterException(String message)
Description copied from interface: Excepton
create exception "CasterException"

Specified by:
createCasterException in interface Excepton
Returns:
CasterException

createCustomTypeException

public PageException createCustomTypeException(String message,
                                               String detail,
                                               String errorcode,
                                               String customType)
Description copied from interface: Excepton
create exception "CustomTypeException"

Specified by:
createCustomTypeException in interface Excepton
Returns:
CustomTypeException

createCustomTypeException

public PageException createCustomTypeException(String message,
                                               String detail,
                                               String errorcode,
                                               String customType,
                                               String extendedInfo)
Specified by:
createCustomTypeException in interface Excepton

createDatabaseException

public PageException createDatabaseException(String message)
Description copied from interface: Excepton
create exception "DatabaseException"

Specified by:
createDatabaseException in interface Excepton
Returns:
DatabaseException

createDatabaseException

public PageException createDatabaseException(String message,
                                             String detail)
Description copied from interface: Excepton
create exception "DatabaseException"

Specified by:
createDatabaseException in interface Excepton
Returns:
DatabaseException

createDatabaseException

public PageException createDatabaseException(String message,
                                             SQL sql)
Description copied from interface: Excepton
create exception "DatabaseException"

Specified by:
createDatabaseException in interface Excepton
Returns:
DatabaseException

createExpressionException

public PageException createExpressionException(String message)
Description copied from interface: Excepton
create exception "ExpressionException"

Specified by:
createExpressionException in interface Excepton
Returns:
ExpressionException

createExpressionException

public PageException createExpressionException(String message,
                                               String detail)
Description copied from interface: Excepton
create exception "ExpressionException"

Specified by:
createExpressionException in interface Excepton
Returns:
ExpressionException

createFunctionException

public PageException createFunctionException(PageContext pc,
                                             String functionName,
                                             String badArgumentPosition,
                                             String badArgumentName,
                                             String message)
Description copied from interface: Excepton
create exception "FunctionException"

Specified by:
createFunctionException in interface Excepton
Returns:
FunctionException

createFunctionException

public PageException createFunctionException(PageContext pc,
                                             String functionName,
                                             int badArgumentPosition,
                                             String badArgumentName,
                                             String message,
                                             String detail)
Description copied from interface: Excepton
create exception "FunctionException"

Specified by:
createFunctionException in interface Excepton
Returns:
FunctionException

createLockException

public PageException createLockException(String operation,
                                         String name,
                                         String message)
Description copied from interface: Excepton
create exception "LockException"

Specified by:
createLockException in interface Excepton
Returns:
LockException

createMissingIncludeException

public PageException createMissingIncludeException(PageSource ps)
Description copied from interface: Excepton
create exception "LockException"

Specified by:
createMissingIncludeException in interface Excepton
Returns:
LockException

createNativeException

public PageException createNativeException(Throwable t)
Description copied from interface: Excepton
create exception "NativeException"

Specified by:
createNativeException in interface Excepton
Returns:
NativeException

createSecurityException

public PageException createSecurityException(String message)
Description copied from interface: Excepton
create exception "SecurityException"

Specified by:
createSecurityException in interface Excepton
Returns:
SecurityException

createSecurityException

public PageException createSecurityException(String message,
                                             String detail)
Description copied from interface: Excepton
create exception "SecurityException"

Specified by:
createSecurityException in interface Excepton
Returns:
SecurityException

createTemplateException

public PageException createTemplateException(String message)
Description copied from interface: Excepton
create exception "TemplateException"

Specified by:
createTemplateException in interface Excepton
Returns:
TemplateException

createTemplateException

public PageException createTemplateException(String message,
                                             String detail)
Description copied from interface: Excepton
create exception "TemplateException"

Specified by:
createTemplateException in interface Excepton
Returns:
TemplateException

createXMLException

public PageException createXMLException(String message)
Description copied from interface: Excepton
create exception "XMLException"

Specified by:
createXMLException in interface Excepton
Returns:
XMLException

createXMLException

public PageException createXMLException(String message,
                                        String detail)
Description copied from interface: Excepton
create exception "XMLException"

Specified by:
createXMLException in interface Excepton
Returns:
XMLException

isOfType

public boolean isOfType(int type,
                        Throwable t)
Description copied from interface: Excepton
check if exception is of given type

Specified by:
isOfType in interface Excepton
Parameters:
type - type to check
t - exception to check
Returns:
is of type


Copyright © 2012 Railo