public class

ErrorBundle

extends MessageBundle
java.lang.Object
   ↳ org.bouncycastle.i18n.LocalizedMessage
     ↳ org.bouncycastle.i18n.TextBundle
       ↳ org.bouncycastle.i18n.MessageBundle
         ↳ org.bouncycastle.i18n.ErrorBundle

Summary

Constants
String DETAIL_ENTRY detail entry key
String SUMMARY_ENTRY summary entry key
[Expand]
Inherited Constants
From class org.bouncycastle.i18n.MessageBundle
From class org.bouncycastle.i18n.TextBundle
From class org.bouncycastle.i18n.LocalizedMessage
[Expand]
Inherited Fields
From class org.bouncycastle.i18n.LocalizedMessage
Public Constructors
ErrorBundle(String resource, 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(String resource, String id, 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(String resource, String id, 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(String resource, String id, String encoding, 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.
Public Methods
String getDetail(Locale loc)
Returns the detail message in the given locale and the default timezone.
String getDetail(Locale loc, TimeZone timezone)
Returns the detail message in the given locale and timezone.
String getSummary(Locale loc, TimeZone timezone)
Returns the summary message in the given locale and timezone.
String getSummary(Locale loc)
Returns the summary message in the given locale and the default timezone.
[Expand]
Inherited Methods
From class org.bouncycastle.i18n.MessageBundle
From class org.bouncycastle.i18n.TextBundle
From class org.bouncycastle.i18n.LocalizedMessage
From class java.lang.Object

Constants

public static final String DETAIL_ENTRY

detail entry key

Constant Value: "details"

public static final String SUMMARY_ENTRY

summary entry key

Constant Value: "summary"

Public Constructors

public ErrorBundle (String resource, 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.

Parameters
resource base name of the resource file
id the id of the corresponding bundle in the resource file
Throws
NullPointerException if resource or id is null

public ErrorBundle (String resource, String id, 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.

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
NullPointerException if resource or id is null
UnsupportedEncodingException if the encoding is not supported

public ErrorBundle (String resource, String id, 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.

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
NullPointerException if resource or id is null

public ErrorBundle (String resource, String id, String encoding, 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.

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
NullPointerException if resource or id is null
UnsupportedEncodingException if the encoding is not supported

Public Methods

public String getDetail (Locale loc)

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

public String getDetail (Locale loc, TimeZone timezone)

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

public String getSummary (Locale loc, TimeZone timezone)

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

public String getSummary (Locale loc)

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