From 3114a952357f67ba7537ef2075da4f623a77bea2 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 22 Sep 2005 09:04:54 +0000 Subject: [PATCH] wee eh git-svn-id: file:///home/svn/incoming/trunk@2866 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/proto/smb/exceptions.rb | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/rex/proto/smb/exceptions.rb diff --git a/lib/rex/proto/smb/exceptions.rb b/lib/rex/proto/smb/exceptions.rb new file mode 100644 index 0000000000..fac6f0ef7f --- /dev/null +++ b/lib/rex/proto/smb/exceptions.rb @@ -0,0 +1,50 @@ +module Rex +module Proto +module SMB +module Exceptions + + +class Error < ::RuntimeError + + def initialize(*args) + super(*args) + + end +end + +class ReadHeader < Error + def to_s + "The SMB response header was invalid" + end +end + +class ReadPacket < Error + def to_s + "The SMB response packet was invalid" + end +end + +class WritePacket < Error + def to_s + "The SMB packet failed to send" + end +end + +class Unimplemented < Error + def to_s + "The SMB packet type was not supported" + end +end + +class NetbiosSessionFailed < Error + def to_s + "The server refused our NetBIOS session request" + end +end + +end +end +end +end + +