Exception: Aspera::Cli::BadIdentifier
- Defined in:
- lib/aspera/cli/error.rb
Instance Method Summary collapse
-
#initialize(res_type, res_id, field: 'identifier', count: 0) ⇒ BadIdentifier
constructor
A new instance of BadIdentifier.
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 |