com.sun.enterprise.backup
Class BackupWarningException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.enterprise.backup.BackupException
              extended by com.sun.enterprise.backup.BackupWarningException
All Implemented Interfaces:
java.io.Serializable

public class BackupWarningException
extends BackupException

Author:
bnevins Problem -- some "errors" should not be handled by CLI as "errors", but as warnings. However, the Exception throwing mechanism is the non-kludgiest way to get the message back to the command handler in CLI. Thus this class.
See Also:
Serialized Form

Constructor Summary
BackupWarningException(java.lang.String s)
          Constructs a BackupWarningException with a possibly i18n'd detail message.
BackupWarningException(java.lang.String s, java.lang.Object o)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackupWarningException

public BackupWarningException(java.lang.String s)
Constructs a BackupWarningException with a possibly i18n'd detail message.

Parameters:
s - the detail message which is first checked for as a key for an i18n string. If not found it will be used as the message itself.

BackupWarningException

public BackupWarningException(java.lang.String s,
                              java.lang.Object o)
Parameters:
s - the detail message which is first checked for as a key for an i18n string. If not found it will be used as the message itself.
o - the parameter for the recovered i18n string. I.e. "{0}" will be replaced with o.toString(). If there is no i18n string located o will be ignored.


Copyright © 2012 GlassFish Community. All Rights Reserved.