jcifs.smb
Class SmbException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.io.IOException
                    |
                    +--jcifs.smb.SmbException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SmbAuthException

public class SmbException
extends java.io.IOException

There are hundreds of error codes that may be returned by a CIFS server. Rather than represent each with it's own Exception class, this class represents all of them. For many of the popular error codes, constants and text messages like "The device is not ready" are provided.

See jCIFS Exceptions and NtlmAuthenticator for more information about SmbException.

See Also:
Serialized Form

Field Summary
static int ERRaccess
          The client does not have the necessary access rights for the requested function
static int ERRaccountExpired
          The user account has expired
static int ERRbadClient
          The user is not allowed to access this server from this client
static int ERRbadDialect
           
static int ERRbadfid
           
static int ERRbadfile
          File not found
static int ERRbadfunc
          Invalid function
static int ERRbadLogonTime
          The user is not permitted to access the server at this time
static int ERRbadnetname
          The network name cannot be found
static int ERRbadparm
           
static int ERRbadpath
          Directory invalid
static int ERRbadpw
          Bad password
static int ERRbadshare
          The file is being used by another process
static int ERRbaduid
           
static int ERRbrokenpipe
          The pipe has been ended
static int ERRCLI
           
static int ERRCMD
           
static int ERRdfs
           
static int ERRDOS
           
static int ERRdupname
          A duplicate name exists on the network
static int ERRerror
          Non-specific error code
static int ERRexists
          File exists
static int ERRfilexists
          Cannot create a file when that file already exists
static int ERRgeneral
          General failure
static int ERRHRD
           
static int ERRimpossible
           
static int ERRinappro
           
static int ERRinvname
          Invalid name
static int ERRinvnetname
           
static int ERRinvnid
           
static int ERRioe
           
static int ERRlistFiles
           
static int ERRnoaccess
          Access denied
static int ERRnodata
          The pipe is being closed
static int ERRnolisting
          The list of servers for this workgroup is not currently available
static int ERRnomoreconn
           
static int ERRnoproc
          No process is on the other end of the pipe
static int ERRnospace
          Not enough storage is available to process this command
static int ERRnotempty
          The directory is not empty
static int ERRnotready
          The device is not ready
static int ERRnowrite
          Attempt to write on write-protected media
static int ERROR_MORE_DATA
           
static int ERRpasswordExpired
          The password of the user has expired
static int ERRpipebusy
          All pipe instances are busy
static int ERRRAP
           
static int ERRreserved
          Reserved (a.k.a.
static int ERRserverTimeout
           
static int ERRSRV
           
static int ERRtoomanyuids
          Too many Uids active on this session
static int ERRunknownHost
           
static int ERRunknownType
           
static int NERR_BasicTransactConfig
           
static int NERR_ServerNotStarted
           
static int NERR_Success
           
static int SUCCESS
           
 
Method Summary
 int getErrorClass()
          Retrieve the error class associated with this error.
 int getErrorCode()
          Retrieve the error code associated with this error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS

ERRDOS

public static final int ERRDOS

ERRSRV

public static final int ERRSRV

ERRHRD

public static final int ERRHRD

ERRCMD

public static final int ERRCMD

ERRRAP

public static final int ERRRAP

ERRCLI

public static final int ERRCLI

ERRbadfunc

public static final int ERRbadfunc
Invalid function

ERRbadfile

public static final int ERRbadfile
File not found

ERRbadpath

public static final int ERRbadpath
Directory invalid

ERRnoaccess

public static final int ERRnoaccess
Access denied

ERRbadfid

public static final int ERRbadfid

ERRnospace

public static final int ERRnospace
Not enough storage is available to process this command

ERRbadshare

public static final int ERRbadshare
The file is being used by another process

ERRdupname

public static final int ERRdupname
A duplicate name exists on the network

ERRbadnetname

public static final int ERRbadnetname
The network name cannot be found

ERRnomoreconn

public static final int ERRnomoreconn

ERRbadparm

public static final int ERRbadparm

ERRfilexists

public static final int ERRfilexists
Cannot create a file when that file already exists

ERRtoomanyuids

public static final int ERRtoomanyuids
Too many Uids active on this session

ERRbrokenpipe

public static final int ERRbrokenpipe
The pipe has been ended

ERRinvname

public static final int ERRinvname
Invalid name

ERRnotempty

public static final int ERRnotempty
The directory is not empty

ERRexists

public static final int ERRexists
File exists

ERRpipebusy

public static final int ERRpipebusy
All pipe instances are busy

ERRnodata

public static final int ERRnodata
The pipe is being closed

ERRnoproc

public static final int ERRnoproc
No process is on the other end of the pipe

ERRerror

public static final int ERRerror
Non-specific error code

ERRbadpw

public static final int ERRbadpw
Bad password

ERRreserved

public static final int ERRreserved
Reserved (a.k.a. STATUS_PATH_NOT_COVERED)

ERRaccess

public static final int ERRaccess
The client does not have the necessary access rights for the requested function

ERRinvnid

public static final int ERRinvnid

ERRinvnetname

public static final int ERRinvnetname

ERRbaduid

public static final int ERRbaduid

ERRaccountExpired

public static final int ERRaccountExpired
The user account has expired

ERRbadClient

public static final int ERRbadClient
The user is not allowed to access this server from this client

ERRbadLogonTime

public static final int ERRbadLogonTime
The user is not permitted to access the server at this time

ERRpasswordExpired

public static final int ERRpasswordExpired
The password of the user has expired

ERRnolisting

public static final int ERRnolisting
The list of servers for this workgroup is not currently available

ERRnowrite

public static final int ERRnowrite
Attempt to write on write-protected media

ERRnotready

public static final int ERRnotready
The device is not ready

ERRgeneral

public static final int ERRgeneral
General failure

NERR_Success

public static final int NERR_Success

ERROR_MORE_DATA

public static final int ERROR_MORE_DATA

NERR_ServerNotStarted

public static final int NERR_ServerNotStarted

NERR_BasicTransactConfig

public static final int NERR_BasicTransactConfig

ERRserverTimeout

public static final int ERRserverTimeout

ERRbadDialect

public static final int ERRbadDialect

ERRioe

public static final int ERRioe

ERRlistFiles

public static final int ERRlistFiles

ERRunknownHost

public static final int ERRunknownHost

ERRinappro

public static final int ERRinappro

ERRunknownType

public static final int ERRunknownType

ERRdfs

public static final int ERRdfs

ERRimpossible

public static final int ERRimpossible
Method Detail

getErrorClass

public int getErrorClass()
Retrieve the error class associated with this error.

getErrorCode

public int getErrorCode()
Retrieve the error code associated with this error.