1 17 package org.alfresco.filesys.smb; 18 19 25 public class SMBException extends Exception 26 { 27 private static final long serialVersionUID = 3256719593644176946L; 28 29 31 protected int m_errorclass; 32 33 35 protected int m_errorcode; 36 37 40 41 public SMBException(int errclass, int errcode) 42 { 43 super(SMBErrorText.ErrorString(errclass, errcode)); 44 m_errorclass = errclass; 45 m_errorcode = errcode; 46 } 47 48 52 53 public SMBException(int errclass, int errcode, String msg) 54 { 55 super(msg); 56 m_errorclass = errclass; 57 m_errorcode = errcode; 58 } 59 60 65 66 public int getErrorClass() 67 { 68 return m_errorclass; 69 } 70 71 76 77 public int getErrorCode() 78 { 79 return m_errorcode; 80 } 81 82 87 88 public String getErrorText() 89 { 90 return SMBErrorText.ErrorString(m_errorclass, m_errorcode); 91 } 92 } | Popular Tags |