/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle}: * <blockquote><pre> * Inserts blocks. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getInsertsBlocksMessage( locale ); }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle}: * <blockquote><pre> * Illegal data. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getIllegalPropertyMessage( locale ); }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle}: * <blockquote><pre> * Deletes blocks. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getDeletesBlocksMessage( locale ); }
return this.getBugReportUrlAndEmailMessage( locale, this.logDirectory.getAbsolutePath(), this.trackerUrl.toExternalForm(), this.reportAddress ); return this.getBugReportUrlMessage( locale, this.logDirectory.getAbsolutePath(), this.trackerUrl.toExternalForm() ); return this.getBugReportEmailMessage( locale, this.logDirectory.getAbsolutePath(), this.reportAddress ); return this.getBugReportMessage( locale, this.logDirectory.getAbsolutePath() );
b.append( this.getIllegalStringMessage( locale, this.invalidString ) ).append( " " ); c.append( "]" ); b.append( this.getIllegalCharactersMessage( locale, c.toString() ) ).append( " " ); b.append( this.getIllegalMinimumStringLengthMessage( locale, this.minimumLength ) ).append( " " ); b.append( this.getIllegalMaximumStringLengthMessage( locale, this.maximumLength ) ).append( " " );
new MandatoryPropertyMessage() ); new IllegalPropertyMessage() ); new IllegalPropertyMessage() ); new IllegalPropertyMessage() ); new IllegalPropertyMessage() );
public String getText( final Locale locale ) { final StringBuffer b = new StringBuffer( 128 ); if ( this.invalidNumber != null ) { b.append( this.getIllegalValueMessage( locale, this.invalidNumber ) ).append( " " ); } if ( this.minimum != null ) { b.append( this.getIllegalMinimumValueMessage( locale, this.minimum ) ).append( " " ); } if ( this.maximum != null ) { b.append( this.getIllegalMaximumValueMessage( locale, this.maximum ) ).append( " " ); } if ( b.length() > 0 ) { b.setLength( b.length() - 1 ); } return b.toString(); }
if ( message == null ) message = this.getNoDetailsAvailableMessage( locale ); if ( this.rootCause instanceof Error ) text = this.getErrorInfoMessage( locale, name, message ); text = this.getExceptionInfoMessage( locale, name, message );
final Messages messages = new Messages(); messages.addMessage( new ExceptionMessage( exception ) ); messages.addMessage( new UndefinedApplicationStateMessage() ); messages.addMessage( new BugReportMessage( this.logDirectory, this.trackerUrl, this.reportAddress ) );
task.setMaximum( (int) maxProgress ); task.setProgress( (int) progress ); task.setDescription( new DeletesBlocksMessage() );
task.setMaximum( (int) maxProgress ); task.setProgress( (int) progress ); task.setDescription( new InsertsBlocksMessage() );
properties.put( Header.PROP_CREATEDATE, new MandatoryPropertyMessage() ); properties.put( Header.PROP_TYPE, new MandatoryPropertyMessage() ); properties.put( Header.PROP_BANKDATA, new MandatoryPropertyMessage() ); properties.put( Header.PROP_CUSTOMER, new MandatoryPropertyMessage() ); properties.put( Header.PROP_BANK, new MandatoryPropertyMessage() ); properties.put( Header.PROP_ACCOUNT, new MandatoryPropertyMessage() ); properties.put( Header.PROP_CURRENCY, new MandatoryPropertyMessage() );
/** * Takes care of initializing the {@code rootCause} field when constructed * from an 1.0.x object stream. * * @throws ObjectStreamException if no root cause can be resolved. */ private Object readResolve() throws ObjectStreamException { if ( this.throwable != null && this.rootCause == null ) { Throwable current = this.throwable; Throwable report = current; while ( ( current = current.getCause() ) != null ) { report = current; } this.rootCause = report; } else if ( !( this.throwable != null && this.rootCause != null ) ) { throw new InvalidObjectException( this.getMissingObjectStreamFieldMessage( this.getLocale() ) ); } return this; }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle}: * <blockquote><pre> * Missing information. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getMandatoryPropertyMessage( locale ); }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle}: * <blockquote><pre> * The application may not work correctly any more. A shutdown is recommended! * Please close any open files and restart the application. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getUndefinedApplicationStateMessage( locale ); }
/** * {@inheritDoc} * <p>This method traverses up the chained hierarchy. The arguments * returned are constructed using the root cause.</p> * * @return Strings describing the throwable. * <ul> * <li>[0]: the fully qualified classname of the root cause.</li> * <li>[1]: the classname of the root cause without package.</li> * <li>[2]: the message of the root cause.</li> * </ul> */ public Object[] getFormatArguments( final Locale locale ) { String name = this.rootCause.getClass().getName(); final int lastDot = name.lastIndexOf( '.' ); if ( lastDot >= 0 ) { name = name.substring( lastDot + 1 ); } String message = this.rootCause.getMessage(); if ( message == null ) { message = this.getNoDetailsAvailableMessage( locale ); } return new Object[] { this.rootCause.getClass().getName(), name, message }; }
new MandatoryPropertyMessage() ); new IllegalPropertyMessage() ); new IllegalPropertyMessage() ); new IllegalPropertyMessage() ); new IllegalPropertyMessage() );
task.setMaximum( (int) maxProgress ); task.setProgress( (int) progress ); task.setDescription( new DeletesBlocksMessage() );
task.setMaximum( (int) maxProgress ); task.setProgress( (int) progress ); task.setDescription( new InsertsBlocksMessage() );
properties.put( Transaction.PROP_EXECUTIVEACCOUNT, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_EXECUTIVEBANK, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_EXECUTIVENAME, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_TARGETACCOUNT, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_TARGETBANK, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_TARGETNAME, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_TYPE, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_CURRENCY, new MandatoryPropertyMessage() ); properties.put( Transaction.PROP_AMOUNT, new MandatoryPropertyMessage() );