de.smartics.exceptions.i18n.test
Class FakeException

Package class diagram package FakeException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.smartics.exceptions.AbstractCoreException
              extended by de.smartics.exceptions.i18n.AbstractLocalizedException
                  extended by de.smartics.exceptions.i18n.test.FakeException
All Implemented Interfaces:
CoreException, LocalizedException, Serializable

public class FakeException
     
     
extends AbstractLocalizedException

An exception to use for tests on localized exceptions. This exception provides different parts of information for different codes.

Author:
Robert Reiner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractLocalizedException
localizedInfo
 
Fields inherited from class de.smartics.exceptions.AbstractCoreException
info
 
Constructor Summary
FakeException(FakeExceptionCode code)
          Constructor.
FakeException(FakeExceptionCode code, String bundleBaseName)
          Constructor.
FakeException(Throwable cause, FakeExceptionCode code)
          Constructor.
FakeException(Throwable cause, FakeExceptionCode code, String bundleBaseName)
          Constructor.
FakeException(Throwable cause, FakeExceptionCode code, String bundleBaseName, String resourceKey)
          Constructor.
 
Method Summary
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractLocalizedException
getBundleBaseName, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, getResourceKey
 
Methods inherited from class de.smartics.exceptions.AbstractCoreException
getCause, getCode, getId, getTime, toString, truncateCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.smartics.exceptions.CoreException
getCause, getCode, getId, getStackTrace, getTime, setStackTrace, truncateCause
 

Constructor Detail

FakeException

public FakeException(FakeExceptionCode code)
Constructor.

Parameters:
code - the error or exception code of the exception.
See Also:
AbstractLocalizedException.AbstractLocalizedException(de.smartics.exceptions.core.Code)

FakeException

public FakeException(FakeExceptionCode code,
                     String bundleBaseName)
Constructor.

Parameters:
code - the error or exception code of the exception.
bundleBaseName - the fully qualified name of the bundle to use.
See Also:
AbstractLocalizedException.AbstractLocalizedException(de.smartics.exceptions.core.Code, java.lang.String)

FakeException

public FakeException(Throwable cause,
                     FakeExceptionCode code)
Constructor.

Parameters:
cause - the cause (which is saved for later retrieval by the AbstractCoreException.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
code - the error or exception code of the exception.
See Also:
AbstractLocalizedException.AbstractLocalizedException(java.lang.Throwable, de.smartics.exceptions.core.Code)

FakeException

public FakeException(Throwable cause,
                     FakeExceptionCode code,
                     String bundleBaseName)
Constructor.

Parameters:
cause - the cause (which is saved for later retrieval by the AbstractCoreException.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
code - the error or exception code of the exception.
bundleBaseName - the fully qualified name of the bundle to use.
See Also:
AbstractLocalizedException.AbstractLocalizedException(java.lang.Throwable, de.smartics.exceptions.core.Code, java.lang.String)

FakeException

public FakeException(Throwable cause,
                     FakeExceptionCode code,
                     String bundleBaseName,
                     String resourceKey)
Constructor.

Parameters:
cause - the cause (which is saved for later retrieval by the AbstractCoreException.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
code - the error or exception code of the exception.
bundleBaseName - the fully qualified name of the bundle to use.
resourceKey - the localization key to fetch messages from message bundles.
See Also:
AbstractLocalizedException.AbstractLocalizedException(java.lang.Throwable, de.smartics.exceptions.core.Code, java.lang.String, java.lang.String)


Copyright © 2007-$2011 Kronseder & Reiner GmbH - smartics. All Rights Reserved.