org.bouncycastle.i18n
Class ErrorBundle

java.lang.Object
  extended by org.bouncycastle.i18n.LocalizedMessage
      extended by org.bouncycastle.i18n.TextBundle
          extended by org.bouncycastle.i18n.MessageBundle
              extended by org.bouncycastle.i18n.ErrorBundle

public class ErrorBundle
extends MessageBundle


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bouncycastle.i18n.LocalizedMessage
LocalizedMessage.FilteredArguments
 
Field Summary
static java.lang.String DETAIL_ENTRY
          detail entry key
static java.lang.String SUMMARY_ENTRY
          summary entry key
 
Fields inherited from class org.bouncycastle.i18n.MessageBundle
TITLE_ENTRY
 
Fields inherited from class org.bouncycastle.i18n.TextBundle
TEXT_ENTRY
 
Fields inherited from class org.bouncycastle.i18n.LocalizedMessage
arguments, DEFAULT_ENCODING, encoding, extraArgs, filter, id, loader, resource
 
Constructor Summary
ErrorBundle(java.lang.String resource, java.lang.String id)
          Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
ErrorBundle(java.lang.String resource, java.lang.String id, java.lang.Object[] arguments)
          Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
ErrorBundle(java.lang.String resource, java.lang.String id, java.lang.String encoding)
          Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
ErrorBundle(java.lang.String resource, java.lang.String id, java.lang.String encoding, java.lang.Object[] arguments)
          Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
 
Method Summary
 java.lang.String getDetail(java.util.Locale loc)
          Returns the detail message in the given locale and the default timezone.
 java.lang.String getDetail(java.util.Locale loc, java.util.TimeZone timezone)
          Returns the detail message in the given locale and timezone.
 java.lang.String getSummary(java.util.Locale loc)
          Returns the summary message in the given locale and the default timezone.
 java.lang.String getSummary(java.util.Locale loc, java.util.TimeZone timezone)
          Returns the summary message in the given locale and timezone.
 
Methods inherited from class org.bouncycastle.i18n.MessageBundle
getTitle, getTitle
 
Methods inherited from class org.bouncycastle.i18n.TextBundle
getText, getText
 
Methods inherited from class org.bouncycastle.i18n.LocalizedMessage
addExtraArgs, formatWithTimeZone, getArguments, getClassLoader, getEntry, getExtraArgs, getFilter, getId, getResource, setClassLoader, setExtraArgument, setExtraArguments, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUMMARY_ENTRY

public static final java.lang.String SUMMARY_ENTRY
summary entry key

See Also:
Constant Field Values

DETAIL_ENTRY

public static final java.lang.String DETAIL_ENTRY
detail entry key

See Also:
Constant Field Values
Constructor Detail

ErrorBundle

public ErrorBundle(java.lang.String resource,
                   java.lang.String id)
            throws java.lang.NullPointerException
Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters:
resource - base name of the resource file
id - the id of the corresponding bundle in the resource file
Throws:
java.lang.NullPointerException - if resource or id is null

ErrorBundle

public ErrorBundle(java.lang.String resource,
                   java.lang.String id,
                   java.lang.String encoding)
            throws java.lang.NullPointerException,
                   java.io.UnsupportedEncodingException
Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters:
resource - base name of the resource file
id - the id of the corresponding bundle in the resource file
encoding - the encoding of the resource file
Throws:
java.lang.NullPointerException - if resource or id is null
java.io.UnsupportedEncodingException - if the encoding is not supported

ErrorBundle

public ErrorBundle(java.lang.String resource,
                   java.lang.String id,
                   java.lang.Object[] arguments)
            throws java.lang.NullPointerException
Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters:
resource - base name of the resource file
id - the id of the corresponding bundle in the resource file
arguments - an array containing the arguments for the message
Throws:
java.lang.NullPointerException - if resource or id is null

ErrorBundle

public ErrorBundle(java.lang.String resource,
                   java.lang.String id,
                   java.lang.String encoding,
                   java.lang.Object[] arguments)
            throws java.lang.NullPointerException,
                   java.io.UnsupportedEncodingException
Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters:
resource - base name of the resource file
id - the id of the corresponding bundle in the resource file
encoding - the encoding of the resource file
arguments - an array containing the arguments for the message
Throws:
java.lang.NullPointerException - if resource or id is null
java.io.UnsupportedEncodingException - if the encoding is not supported
Method Detail

getSummary

public java.lang.String getSummary(java.util.Locale loc,
                                   java.util.TimeZone timezone)
                            throws MissingEntryException
Returns the summary message in the given locale and timezone.

Parameters:
loc - the Locale
timezone - the TimeZone
Returns:
the summary message.
Throws:
MissingEntryException - if the message is not available

getSummary

public java.lang.String getSummary(java.util.Locale loc)
                            throws MissingEntryException
Returns the summary message in the given locale and the default timezone.

Parameters:
loc - the Locale
Returns:
the summary message.
Throws:
MissingEntryException - if the message is not available

getDetail

public java.lang.String getDetail(java.util.Locale loc,
                                  java.util.TimeZone timezone)
                           throws MissingEntryException
Returns the detail message in the given locale and timezone.

Parameters:
loc - the Locale
timezone - the TimeZone
Returns:
the detail message.
Throws:
MissingEntryException - if the message is not available

getDetail

public java.lang.String getDetail(java.util.Locale loc)
                           throws MissingEntryException
Returns the detail message in the given locale and the default timezone.

Parameters:
loc - the Locale
Returns:
the detail message.
Throws:
MissingEntryException - if the message is not available