com.redhat.rhn.common.hibernate
Class LookupException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.redhat.rhn.common.RhnRuntimeException
                  extended by com.redhat.rhn.common.db.DatabaseException
                      extended by com.redhat.rhn.common.hibernate.LookupException
All Implemented Interfaces:
java.io.Serializable

public class LookupException
extends DatabaseException

Thrown if the the object couldn't be found, or it multiple objects were found

See Also:
Serialized Form

Constructor Summary
LookupException(java.lang.String message)
          Constructor
LookupException(java.lang.String message, java.lang.Throwable cause)
          Constructor
 
Method Summary
 java.lang.String getLocalizedReason1()
           
 java.lang.String getLocalizedReason2()
           
 java.lang.String getLocalizedTitle()
           
 void setLocalizedReason1(java.lang.String reason1KeyIn)
           
 void setLocalizedReason2(java.lang.String reason2KeyIn)
           
 void setLocalizedTitle(java.lang.String titleKeyIn)
           
 
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

LookupException

public LookupException(java.lang.String message)
Constructor

Parameters:
message - exception message

LookupException

public LookupException(java.lang.String message,
                       java.lang.Throwable cause)
Constructor

Parameters:
message - exception message
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getLocalizedReason1

public java.lang.String getLocalizedReason1()
Returns:
Returns the localizedReason1.

setLocalizedReason1

public void setLocalizedReason1(java.lang.String reason1KeyIn)
Parameters:
reason1KeyIn - The localizedReason1 to set.

getLocalizedReason2

public java.lang.String getLocalizedReason2()
Returns:
Returns the localizedReason2.

setLocalizedReason2

public void setLocalizedReason2(java.lang.String reason2KeyIn)
Parameters:
reason2KeyIn - The localizedReason2 to set.

getLocalizedTitle

public java.lang.String getLocalizedTitle()
Returns:
Returns the localizedTitle.

setLocalizedTitle

public void setLocalizedTitle(java.lang.String titleKeyIn)
Parameters:
titleKeyIn - The localizedTitle to set.