public class ErrorBundle extends MessageBundle
LocalizedMessage.FilteredArguments| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
DETAIL_ENTRY
detail entry key 
 | 
static java.lang.String | 
SUMMARY_ENTRY
summary entry key 
 | 
TITLE_ENTRYTEXT_ENTRYarguments, DEFAULT_ENCODING, encoding, extraArgs, filter, id, loader, resource| Constructor and Description | 
|---|
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. | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
getTitle, getTitlegetText, getTextaddExtraArgs, formatWithTimeZone, getArguments, getClassLoader, getEntry, getExtraArgs, getFilter, getId, getResource, setClassLoader, setExtraArgument, setExtraArguments, setFilter, toStringpublic static final java.lang.String SUMMARY_ENTRY
public static final java.lang.String DETAIL_ENTRY
public ErrorBundle(java.lang.String resource,
                   java.lang.String id)
            throws java.lang.NullPointerException
resource as the base name for the 
 RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource filejava.lang.NullPointerException - if resource or id is nullpublic ErrorBundle(java.lang.String resource,
                   java.lang.String id,
                   java.lang.String encoding)
            throws java.lang.NullPointerException,
                   java.io.UnsupportedEncodingException
resource as the base name for the 
 RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource fileencoding - the encoding of the resource filejava.lang.NullPointerException - if resource or id is nulljava.io.UnsupportedEncodingException - if the encoding is not supportedpublic ErrorBundle(java.lang.String resource,
                   java.lang.String id,
                   java.lang.Object[] arguments)
            throws java.lang.NullPointerException
resource as the base name for the 
 RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource filearguments - an array containing the arguments for the messagejava.lang.NullPointerException - if resource or id is nullpublic ErrorBundle(java.lang.String resource,
                   java.lang.String id,
                   java.lang.String encoding,
                   java.lang.Object[] arguments)
            throws java.lang.NullPointerException,
                   java.io.UnsupportedEncodingException
resource as the base name for the 
 RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource fileencoding - the encoding of the resource filearguments - an array containing the arguments for the messagejava.lang.NullPointerException - if resource or id is nulljava.io.UnsupportedEncodingException - if the encoding is not supportedpublic java.lang.String getSummary(java.util.Locale loc,
                                   java.util.TimeZone timezone)
                            throws MissingEntryException
loc - the Localetimezone - the TimeZoneMissingEntryException - if the message is not availablepublic java.lang.String getSummary(java.util.Locale loc)
                            throws MissingEntryException
loc - the LocaleMissingEntryException - if the message is not availablepublic java.lang.String getDetail(java.util.Locale loc,
                                  java.util.TimeZone timezone)
                           throws MissingEntryException
loc - the Localetimezone - the TimeZoneMissingEntryException - if the message is not availablepublic java.lang.String getDetail(java.util.Locale loc)
                           throws MissingEntryException
loc - the LocaleMissingEntryException - if the message is not available