Exception: NexusCli::UserNotFoundException

Inherits:
NexusCliError
  • Object
show all
Defined in:
lib/nexus_cli/errors.rb

Instance Method Summary collapse

Methods inherited from NexusCliError

status_code

Constructor Details

#initialize(id) ⇒ UserNotFoundException

Returns a new instance of UserNotFoundException.



166
167
168
# File 'lib/nexus_cli/errors.rb', line 166

def initialize(id)
  @id = id
end

Instance Method Details

#messageObject



170
171
172
# File 'lib/nexus_cli/errors.rb', line 170

def message
  "A user with the ID of #{@id} could not be found. Please ensure it exists."
end