Exception: ServerBackups::BackupCreationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/server_backups/errors.rb

Direct Known Subclasses

RestoreTarError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, backup_class, backup_type) ⇒ BackupCreationError

Returns a new instance of BackupCreationError.



6
7
8
9
10
# File 'lib/server_backups/errors.rb', line 6

def initialize(msg, backup_class, backup_type)
    @backup_class = backup_class
    @backup_type = backup_type
    super(msg)
end

Instance Attribute Details

#backup_classObject (readonly)

Returns the value of attribute backup_class.



5
6
7
# File 'lib/server_backups/errors.rb', line 5

def backup_class
  @backup_class
end

#backup_typeObject (readonly)

Returns the value of attribute backup_type.



5
6
7
# File 'lib/server_backups/errors.rb', line 5

def backup_type
  @backup_type
end