Sha256: c0ecadb69953295c6ccf6434447f71ae8ebfc633075d41520afba9c10d542320

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

module LSync
  
  class BackupError < StandardError
    def initialize(reason, components = {})
      @reason = reason
      @components = components
    end
    
    def to_s
      @reason
    end
    
    attr :reason
    attr :components
  end
  
  class BackupScriptError < BackupError
  end
  
  class BackupMethodError < BackupError
  end
  
  class ConfigurationError < BackupError
  end
  
  class BackupActionError < BackupError
    def initialize(server, action, exception)
      super("Backup action failed: #{action} (#{exception.to_s})", :action => action, :exception => exception)
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lsync-1.2.1 lib/lsync/backup_error.rb