FileDocCategorySizeDatePackage
BackupException.javaAPI DocGlassfish v2 API4126Fri May 04 22:23:14 BST 2007com.sun.enterprise.config.backup

BackupException

public class BackupException extends Exception
Backup-Restore guarantees that this will be the one and only one kind of Exception that will ever be thrown. All fatal errors will result in this Exception being thrown. This is a checked Exception so callers will be forced to deal with it.

the class features built-in i18n. I.e. any String passed to a BackupException constructor will first be used as a key into the i18n Strings. If it is not found, the String itself will be used as the messsage.

author
bnevins

Fields Summary
Constructors Summary
public BackupException(String s)
Constructs a BackupException with a possibly i18n'd detail message.

param
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.

		super(StringHelper.get(s));
	
public BackupException(String s, Object o)

param
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.
param
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.

		super(StringHelper.get(s, o));
	
public BackupException(String s, Throwable t)

param
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.
param
t the cause.

		super(StringHelper.get(s), t);
	
public BackupException(String s, Throwable t, Object o)

param
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.
param
t the cause.
param
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.

		super(StringHelper.get(s, o), t);
	
Methods Summary