Interface Excepton


public interface Excepton
class to get exceptions of different types
  • Field Details

    • TYPE_ABORT

      static final int TYPE_ABORT
      Field TYPE_ABORT
      See Also:
    • TYPE_ABORT_EXP

      static final int TYPE_ABORT_EXP
      Field TYPE_ABORT_EXP
      See Also:
    • TYPE_APPLICATION_EXP

      static final int TYPE_APPLICATION_EXP
      Field TYPE_APPLICATION_EXP
      See Also:
    • TYPE_CASTER_EXP

      static final int TYPE_CASTER_EXP
      Field TYPE_CASTER_EXP
      See Also:
    • TYPE_CUSTOM_TYPE_EXP

      static final int TYPE_CUSTOM_TYPE_EXP
      Field TYPE_CUSTOM_TYPE_EXP
      See Also:
    • TYPE_DATABASE_EXP

      static final int TYPE_DATABASE_EXP
      Field TYPE_DATABASE_EXP
      See Also:
    • TYPE_EXPRESSION_EXP

      static final int TYPE_EXPRESSION_EXP
      Field TYPE_EXPRESSION_EXP
      See Also:
    • TYPE_FUNCTION_EXP

      static final int TYPE_FUNCTION_EXP
      Field TYPE_FUNCTION_EXP
      See Also:
    • TYPE_LOCK_EXP

      static final int TYPE_LOCK_EXP
      Field TYPE_LOCK_EXP
      See Also:
    • TYPE_MISSING_INCLUDE_EXP

      static final int TYPE_MISSING_INCLUDE_EXP
      Field TYPE_MISSING_INCLUDE_EXP
      See Also:
    • TYPE_NATIVE_EXP

      static final int TYPE_NATIVE_EXP
      Field TYPE_NATIVE_EXP
      See Also:
    • TYPE_SECURITY_EXP

      static final int TYPE_SECURITY_EXP
      Field TYPE_SECURITY_EXP
      See Also:
    • TYPE_TEMPLATE_EXP

      static final int TYPE_TEMPLATE_EXP
      Field TYPE_TEMPLATE_EXP
      See Also:
    • TYPE_XML_EXP

      static final int TYPE_XML_EXP
      Field TYPE_XML_EXP
      See Also:
  • Method Details

    • createAbort

      PageException createAbort()
      create exception "Abort"
      Returns:
      Abort
    • createAbortException

      PageException createAbortException(String showError)
      create exception "AbortException"
      Parameters:
      showError - show error
      Returns:
      AbortException
    • createApplicationException

      PageException createApplicationException(String message)
      create exception "ApplicationException"
      Parameters:
      message - Message
      Returns:
      ApplicationException
    • createApplicationException

      PageException createApplicationException(String message, String detail)
      create exception "ApplicationException"
      Parameters:
      message - Message
      detail - Detail
      Returns:
      ApplicationException
    • createCasterException

      PageException createCasterException(String message)
      create exception "CasterException"
      Parameters:
      message - Message
      Returns:
      CasterException
    • createCasterException

      PageException createCasterException(Object obj, String className)
    • createCasterException

      PageException createCasterException(Object obj, Class clazz)
    • createCustomTypeException

      @Deprecated PageException createCustomTypeException(String message, String detail, String errorcode, String customType)
      Deprecated.
      use instead createCustomTypeException(String message, String detail, String errorcode, String customType, String extendedInfo);
      create exception "CustomTypeException"
      Parameters:
      message - Message
      detail - Detail
      errorcode - Error Code
      customType - Custom Type
      Returns:
      CustomTypeException
    • createCustomTypeException

      PageException createCustomTypeException(String message, String detail, String errorcode, String customType, String extendedInfo)
    • createDatabaseException

      PageException createDatabaseException(String message)
      create exception "DatabaseException"
      Parameters:
      message - Message
      Returns:
      DatabaseException
    • createDatabaseException

      PageException createDatabaseException(String message, String detail)
      create exception "DatabaseException"
      Parameters:
      message - Message
      detail - Detail
      Returns:
      DatabaseException
    • createDatabaseException

      PageException createDatabaseException(String message, SQL sql)
      create exception "DatabaseException"
      Parameters:
      message - Message
      sql - SQL
      Returns:
      DatabaseException
    • createExpressionException

      PageException createExpressionException(String message)
      create exception "ExpressionException"
      Parameters:
      message - Message
      Returns:
      ExpressionException
    • createExpressionException

      PageException createExpressionException(String message, String detail)
      create exception "ExpressionException"
      Parameters:
      message - Message
      detail - Detail
      Returns:
      ExpressionException
    • createFunctionException

      @Deprecated PageException createFunctionException(PageContext pc, String functionName, String badArgumentPosition, String badArgumentName, String message)
      Deprecated.
      use instead createFunctionException(PageContext pc,String functionName, int badArgumentPosition, String badArgumentName, String message, String detail))
      create exception "FunctionException"
      Parameters:
      pc - Page Context
      functionName - Function Name
      badArgumentPosition - Bad Argument Position
      badArgumentName - Bad Argument Name
      message - Message
      Returns:
      FunctionException
    • createFunctionException

      PageException createFunctionException(PageContext pc, String functionName, int badArgumentPosition, String badArgumentName, String message, String detail)
      create exception "FunctionException"
      Parameters:
      pc - Page Context
      functionName - Function Name
      badArgumentPosition - Bad Argument Position
      badArgumentName - Bad Argument Name
      message - Message
      detail - Detail
      Returns:
      FunctionException
    • createLockException

      PageException createLockException(String operation, String name, String message)
      create exception "LockException"
      Parameters:
      operation - operation
      name - name
      message - Message
      Returns:
      LockException
    • createMissingIncludeException

      PageException createMissingIncludeException(PageSource ps)
      create exception "LockException"
      Parameters:
      ps - Page Source
      Returns:
      LockException
    • createNativeException

      PageException createNativeException(Throwable t)
      create exception "NativeException"
      Parameters:
      t - Throwable
      Returns:
      NativeException
    • createSecurityException

      PageException createSecurityException(String message)
      create exception "SecurityException"
      Parameters:
      message - Message
      Returns:
      SecurityException
    • createSecurityException

      PageException createSecurityException(String message, String detail)
      create exception "SecurityException"
      Parameters:
      message - Message
      detail - Detail
      Returns:
      SecurityException
    • createTemplateException

      PageException createTemplateException(String message)
      create exception "TemplateException"
      Parameters:
      message - Message
      Returns:
      TemplateException
    • createTemplateException

      PageException createTemplateException(String message, String detail)
      create exception "TemplateException"
      Parameters:
      message - Message
      detail - Detail
      Returns:
      TemplateException
    • createXMLException

      PageException createXMLException(String message)
      create exception "XMLException"
      Parameters:
      message - Message
      Returns:
      XMLException
    • createXMLException

      PageException createXMLException(String message, String detail)
      create exception "XMLException"
      Parameters:
      message - Message
      detail - Detail
      Returns:
      XMLException
    • isOfType

      boolean isOfType(int type, Throwable t)
      check if exception is of given type
      Parameters:
      type - type to check
      t - exception to check
      Returns:
      is of type
    • similarKeyMessage

      String similarKeyMessage(Collection.Key[] keys, String keySearched, String keyLabel, String keyLabels, String in, boolean listAll)
    • createPageRuntimeException

      RuntimeException createPageRuntimeException(PageException pe)
    • createFunctionException

      PageException createFunctionException(PageContext pc, String functionName, int min, int max, int actual)
    • toIOException

      IOException toIOException(Throwable t)