Exception: Aspera::Cli::BadIdentifier

Inherits:
Error
  • Object
show all
Defined in:
lib/aspera/cli/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(res_type, res_id, field: 'identifier', count: 0) ⇒ BadIdentifier

Returns a new instance of BadIdentifier.



13
14
15
16
# File 'lib/aspera/cli/error.rb', line 13

def initialize(res_type, res_id, field: 'identifier', count: 0)
  msg = count.eql?(0) ? 'not found' : "found #{count}"
  super("#{res_type} with #{field}=#{res_id}: #{msg}")
end