Exception: RubySMB::Error::UnexpectedStatusCode

Inherits:
RubySMBError
  • Object
show all
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

#status_code

Instance Method Summary collapse

Methods included from Mixin

#status_name

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_sObject



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