com.redhat.rhn.common
Class RhnRuntimeException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionIsChildException, AuthenticationServiceInitializationException, ConfigException, DatabaseException, DataSourceParsingException, DuplicateProfileNameException, HibernateRuntimeException, IllegalRegexException, IncompatibleArchException, InvalidChannelParameter, InvalidKickstartLabelException, InvalidSessionDurationException, InvalidSessionIdException, JavaMailException, KickstartParsingException, LocalizationException, ManifestFactoryLookupException, ManifestFactoryParseException, MapColumnNotFoundException, MD5CryptException, MessageExecuteException, MethodInvocationException, MethodNotFoundException, MethodNotStaticException, MissingCapabilityException, MissingEntitlementException, MissingPackagesException, ModeNotFoundException, NoBaseChannelFoundException, ObjectCreateWrapperException, ParameterValueNotFoundException, PermissionException, PublishedOnlyException, SessionSwapTamperException, StateChangeException, TooManyChannelFamiliesException, TranslationException, UndefinedCustomDataKeyException, ValidatorException, WrongPackageTypeException

public class RhnRuntimeException
extends java.lang.RuntimeException

A generic unchecked exception that may be used to wrap checked exceptions we cannot handle or do not expect. SQLException is a good example of a checked exception that we may want to wrap in an unchecked exception because we typically cannot do much of anything with it.

Custom, unchecked exceptions should extend RhnRuntimeException so that we can provide generic error handling, reporting, logging, etc.

See Also:
Serialized Form

Constructor Summary
RhnRuntimeException()
           
RhnRuntimeException(java.lang.String msg)
           
RhnRuntimeException(java.lang.String msg, java.lang.Throwable t)
           
RhnRuntimeException(java.lang.Throwable t)
           
 
Method Summary
 
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

RhnRuntimeException

public RhnRuntimeException()

RhnRuntimeException

public RhnRuntimeException(java.lang.String msg)
Parameters:
msg - An error message

RhnRuntimeException

public RhnRuntimeException(java.lang.Throwable t)
Parameters:
t - The Throwable to wrap

RhnRuntimeException

public RhnRuntimeException(java.lang.String msg,
                           java.lang.Throwable t)
Parameters:
msg - An error message
t - The Throwable to wrap