de.smartics.exceptions.i18n.test
Class FakeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.smartics.exceptions.AbstractCoreException
de.smartics.exceptions.i18n.AbstractLocalizedException
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
Methods inherited from class de.smartics.exceptions.i18n.AbstractLocalizedException |
getBundleBaseName, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, getResourceKey |
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.