Exception: RubySMB::Error::UnexpectedStatusCode
- Inherits:
-
RubySMBError
- Object
- StandardError
- RubySMBError
- RubySMB::Error::UnexpectedStatusCode
- Includes:
- Mixin
- Defined in:
- lib/ruby_smb/error.rb
Overview
Raised when a response packet has a NTStatus code that was unexpected.
Defined Under Namespace
Modules: Mixin
Instance Attribute Summary
Attributes included from Mixin
Instance Method Summary collapse
-
#initialize(status_code) ⇒ UnexpectedStatusCode
constructor
A new instance of UnexpectedStatusCode.
- #to_s ⇒ Object
Methods included from Mixin
Constructor Details
#initialize(status_code) ⇒ UnexpectedStatusCode
Returns a new instance of UnexpectedStatusCode.
99 100 101 102 |
# File 'lib/ruby_smb/error.rb', line 99 def initialize(status_code) self.status_code = status_code super end |
Instance Method Details
#to_s ⇒ Object
104 105 106 |
# File 'lib/ruby_smb/error.rb', line 104 def to_s "The server responded with an unexpected status code: #{status_code.name}" end |