Sha256: 67b525d6fe5519b12dcd6526d5ad5e27d0f1f52a90f5bf25e1c59970a4da0ee4

Contents?: true

Size: 1.11 KB

Versions: 10

Compression:

Stored size: 1.11 KB

Contents

module RubySMB
  # Contains all the RubySMB specific Error classes.
  module Error
    # Base class for RubySMB errors
    class RubySMBError < StandardError; end

    # Raised when there is a length or formatting issue with an ASN1-encoded string
    # @see https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One
    # @todo Find an SMB-specific link for ASN1 above
    class ASN1Encoding < RubySMBError; end

    # Raised when there is a problem with communication over NetBios Session Service
    # @see https://wiki.wireshark.org/NetBIOS/NBSS
    class NetBiosSessionService < RubySMBError; end

    # Raised when trying to parse raw binary into a Packet and the data
    # is invalid.
    class InvalidPacket < RubySMBError; end

    # Raised when a response packet has a NTStatus code that was unexpected.
    class UnexpectedStatusCode < RubySMBError; end

    # Raised when an error occurs with the underlying socket.
    class CommunicationError < RubySMBError; end

    # Raised when Protocol Negotiation fails, possibly due to an
    # unsupported protocol.
    class NegotiationFailure < RubySMBError; end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby_smb-1.0.3 lib/ruby_smb/error.rb
ruby_smb-1.0.2 lib/ruby_smb/error.rb
ruby_smb-1.0.1 lib/ruby_smb/error.rb
ruby_smb-1.0.0 lib/ruby_smb/error.rb
ruby_smb-0.0.24 lib/ruby_smb/error.rb
ruby_smb-0.0.23 lib/ruby_smb/error.rb
ruby_smb-0.0.22 lib/ruby_smb/error.rb
ruby_smb-0.0.21 lib/ruby_smb/error.rb
ruby_smb-0.0.20 lib/ruby_smb/error.rb
ruby_smb-0.0.19 lib/ruby_smb/error.rb