Exception: NexusCli::UnexpectedStatusCodeException
- Inherits:
-
NexusCliError
- Object
- StandardError
- NexusCliError
- NexusCli::UnexpectedStatusCodeException
- Defined in:
- lib/nexus_cli/errors.rb
Instance Method Summary collapse
-
#initialize(code) ⇒ UnexpectedStatusCodeException
constructor
A new instance of UnexpectedStatusCodeException.
- #message ⇒ Object
Methods inherited from NexusCliError
Constructor Details
#initialize(code) ⇒ UnexpectedStatusCodeException
Returns a new instance of UnexpectedStatusCodeException.
136 137 138 |
# File 'lib/nexus_cli/errors.rb', line 136 def initialize(code) @code = code end |
Instance Method Details
#message ⇒ Object
140 141 142 |
# File 'lib/nexus_cli/errors.rb', line 140 def "The server responded with a #{@code} status code which is unexpected. Please submit a bug." end |