Class BackupException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    BackupWarningException

    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
    See Also:
    Serialized Form
    • Constructor Detail

      • BackupException

        public BackupException​(String s)
        Constructs a BackupException 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.
      • BackupException

        public BackupException​(String s,
                               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.
      • BackupException

        public BackupException​(String s,
                               Throwable t)
        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.
        t - the cause.
      • BackupException

        public BackupException​(String s,
                               Throwable t,
                               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.
        t - the cause.
        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.