com.pega.pegarules.pub.database
Class BadInputException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pega.pegarules.pub.PRException
              extended by com.pega.pegarules.pub.database.DatabaseException
                  extended by com.pega.pegarules.pub.database.BadInputException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthorizationException

public class BadInputException
extends DatabaseException

Indicates that an input to a database method is invalid.

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Jamie Gentry
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String sMsgClassCannotHaveInstances
          Message that indicates someone is trying to open an instance of a class that cannot have instances.
static java.lang.String VERSION
           
 
Constructor Summary
BadInputException(ClipboardPage aPage, java.lang.String aDescr)
          Creates an bad input exception due to the attempt to save an invalid page.
BadInputException(int aSeverity, java.lang.String aMsg)
          Creates an exception with a severity.
BadInputException(java.lang.String aMsg)
          Creates an exception
BadInputException(java.lang.Throwable aCause, java.lang.String aMsg)
          Creates an exception
BadInputException(java.lang.Throwable aCause, java.lang.String aMsgID, java.lang.String[] aMsgInserts, int aSeverity, java.lang.String aSQL, java.lang.String[] aSQLInserts)
          Creates a bad input exception with a given severity, message name, and with other information.
 
Method Summary
static BadInputException createBadSQLException(java.lang.Throwable aCause, java.lang.String aBadSQL, java.lang.String aParseError)
          Creates an exception due to bad SQL.
static BadInputException createClassCannotHaveInstancesException(java.lang.String aClassName, java.lang.String aDescr)
          Creates an exception caused by an attempt to save or read an instance belonging to a class that cannot have instances.
static BadInputException createGenericBadInputException(java.lang.String aDescr)
          Creates an exception indicating there was a generic error involving a bad parameter passed into a database method.
static BadInputException createShortcutException(ClipboardPage aShortcutPage, java.lang.String aDescr)
          Creates an exception due to operating on a shortcut page.
 
Methods inherited from class com.pega.pegarules.pub.database.DatabaseException
getSQL, setSQL, setSQLInserts
 
Methods inherited from class com.pega.pegarules.pub.PRException
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION

sMsgClassCannotHaveInstances

public static final java.lang.String sMsgClassCannotHaveInstances
Message that indicates someone is trying to open an instance of a class that cannot have instances.

See Also:
Constant Field Values
Constructor Detail

BadInputException

public BadInputException(java.lang.Throwable aCause,
                         java.lang.String aMsgID,
                         java.lang.String[] aMsgInserts,
                         int aSeverity,
                         java.lang.String aSQL,
                         java.lang.String[] aSQLInserts)
Creates a bad input exception with a given severity, message name, and with other information. Sets the runtime status to aMsgID.

Parameters:
aCause - the exception that caused this, or null if none
aMsgID - the message to report
aMsgInserts - the message inserts, or null if none
aSeverity - the severity
aSQL - the SQL we were running when the problem occured, or null if none
aSQLInserts - the inserts for the SQL we were running, or null if none

BadInputException

public BadInputException(java.lang.Throwable aCause,
                         java.lang.String aMsg)
Creates an exception

Parameters:
aCause - the cause
aMsg - the message

BadInputException

public BadInputException(java.lang.String aMsg)
Creates an exception

Parameters:
aMsg - the message

BadInputException

public BadInputException(int aSeverity,
                         java.lang.String aMsg)
Creates an exception with a severity.

Parameters:
aSeverity - the severity
aMsg - the message

BadInputException

public BadInputException(ClipboardPage aPage,
                         java.lang.String aDescr)
Creates an bad input exception due to the attempt to save an invalid page.

Parameters:
aPage -
aDescr -
Method Detail

createBadSQLException

public static BadInputException createBadSQLException(java.lang.Throwable aCause,
                                                      java.lang.String aBadSQL,
                                                      java.lang.String aParseError)
Creates an exception due to bad SQL.

Parameters:
aCause - the parse exception
aBadSQL - the bad SQL
aParseError - description of what went wrong
Returns:
a new exception

createShortcutException

public static BadInputException createShortcutException(ClipboardPage aShortcutPage,
                                                        java.lang.String aDescr)
Creates an exception due to operating on a shortcut page.

Parameters:
aShortcutPage - the shortcut page
aDescr - what we were doing
Returns:
exception

createClassCannotHaveInstancesException

public static BadInputException createClassCannotHaveInstancesException(java.lang.String aClassName,
                                                                        java.lang.String aDescr)
Creates an exception caused by an attempt to save or read an instance belonging to a class that cannot have instances.

Parameters:
aClassName - name of the class
aDescr - description of what was happening when the error occured
Returns:
an exception

createGenericBadInputException

public static BadInputException createGenericBadInputException(java.lang.String aDescr)
Creates an exception indicating there was a generic error involving a bad parameter passed into a database method.

Parameters:
aDescr - a message describing the problem
Returns:
the exception


Copyright © 2012 Pegasystems Inc. All Rights Reserved.