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, 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
See Also:
Excepton.createAbort()

createAbortException

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

Specified by:
createAbortException in interface Excepton
Returns:
AbortException
See Also:
Excepton.createAbortException(java.lang.String)

createApplicationException

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

Specified by:
createApplicationException in interface Excepton
Returns:
ApplicationException
See Also:
Excepton.createApplicationException(java.lang.String)

createApplicationException

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

Specified by:
createApplicationException in interface Excepton
Returns:
ApplicationException
See Also:
Excepton.createApplicationException(java.lang.String, java.lang.String)

createCasterException

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

Specified by:
createCasterException in interface Excepton
Returns:
CasterException
See Also:
Excepton.createCasterException(java.lang.String)

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
See Also:
Excepton.createCustomTypeException(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

createCustomTypeException

public PageException createCustomTypeException(String message,
                                               String detail,
                                               String errorcode,
                                               String customType,
                                               String extendedInfo)

createDatabaseException

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

Specified by:
createDatabaseException in interface Excepton
Returns:
DatabaseException
See Also:
Excepton.createDatabaseException(java.lang.String)

createDatabaseException

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

Specified by:
createDatabaseException in interface Excepton
Returns:
DatabaseException
See Also:
Excepton.createDatabaseException(java.lang.String, java.lang.String)

createDatabaseException

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

Specified by:
createDatabaseException in interface Excepton
Returns:
DatabaseException
See Also:
Excepton.createDatabaseException(java.lang.String, railo.runtime.db.SQL)

createExpressionException

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

Specified by:
createExpressionException in interface Excepton
Returns:
ExpressionException
See Also:
Excepton.createExpressionException(java.lang.String)

createExpressionException

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

Specified by:
createExpressionException in interface Excepton
Returns:
ExpressionException
See Also:
Excepton.createExpressionException(java.lang.String, java.lang.String)

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
See Also:
Excepton.createFunctionException(railo.runtime.PageContext, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

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
See Also:
Excepton.createLockException(java.lang.String, java.lang.String, java.lang.String)

createMissingIncludeException

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

Specified by:
createMissingIncludeException in interface Excepton
Returns:
LockException
See Also:
Excepton.createMissingIncludeException(railo.runtime.PageSource)

createNativeException

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

Specified by:
createNativeException in interface Excepton
Returns:
NativeException
See Also:
Excepton.createNativeException(java.lang.Throwable)

createSecurityException

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

Specified by:
createSecurityException in interface Excepton
Returns:
SecurityException
See Also:
Excepton.createSecurityException(java.lang.String)

createSecurityException

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

Specified by:
createSecurityException in interface Excepton
Returns:
SecurityException
See Also:
Excepton.createSecurityException(java.lang.String, java.lang.String)

createTemplateException

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

Specified by:
createTemplateException in interface Excepton
Returns:
TemplateException
See Also:
Excepton.createTemplateException(java.lang.String)

createTemplateException

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

Specified by:
createTemplateException in interface Excepton
Returns:
TemplateException
See Also:
Excepton.createTemplateException(java.lang.String, java.lang.String)

createXMLException

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

Specified by:
createXMLException in interface Excepton
Returns:
XMLException
See Also:
Excepton.createXMLException(java.lang.String)

createXMLException

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

Specified by:
createXMLException in interface Excepton
Returns:
XMLException
See Also:
Excepton.createXMLException(java.lang.String, java.lang.String)

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
See Also:
Excepton.isOfType(int, java.lang.Throwable)


Copyright © 2012 Railo