tcl.lang
Class TclPosixException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by tcl.lang.TclException
              extended by tcl.lang.TclPosixException
All Implemented Interfaces:
Serializable

public class TclPosixException
extends TclException

See Also:
Serialized Form

Field Summary
static int E2BIG
           
static int EACCES
           
static int EADDRINUSE
           
static int EADDRNOTAVAIL
           
static int EAFNOSUPPORT
           
static int EAGAIN
           
static int EALREADY
           
static int EBADF
           
static int EBADRPC
           
static int EBUSY
           
static int ECHILD
           
static int ECONNABORTED
           
static int ECONNREFUSED
           
static int ECONNRESET
           
static int EDEADLK
           
static int EDESTADDRREQ
           
static int EDOM
           
static int EDQUOT
           
static int EEXIST
           
static int EFAULT
           
static int EFBIG
           
static int EFTYPE
           
static int EHOSTDOWN
           
static int EHOSTUNREACH
           
static int EINPROGRESS
           
static int EINTR
           
static int EINVAL
           
static int EIO
           
static int EISCONN
           
static int EISDIR
           
static int ELOOP
           
static int EMFILE
           
static int EMLINK
           
static int EMSGSIZE
           
static int ENAMETOOLONG
           
static int ENETDOWN
           
static int ENETRESET
           
static int ENETUNREACH
           
static int ENFILE
           
static int ENOBUFS
           
static int ENODEV
           
static int ENOENT
           
static int ENOEXEC
           
static int ENOLCK
           
static int ENOMEM
           
static int ENOPROTOOPT
           
static int ENOSPC
           
static int ENOSYS
           
static int ENOTBLK
           
static int ENOTCONN
           
static int ENOTDIR
           
static int ENOTEMPTY
           
static int ENOTSOCK
           
static int ENOTTY
           
static int ENXIO
           
static int EOPNOTSUPP
           
static int EPERM
           
static int EPFNOSUPPORT
           
static int EPIPE
           
static int EPROCLIM
           
static int EPROCUNAVAIL
           
static int EPROGMISMATCH
           
static int EPROGUNAVAIL
           
static int EPROTONOSUPPORT
           
static int EPROTOTYPE
           
static int ERANGE
           
static int EREMOTE
           
static int EROFS
           
static int ERPCMISMATCH
           
static int ESHUTDOWN
           
static int ESOCKTNOSUPPORT
           
static int ESPIPE
           
static int ESRCH
           
static int ESTALE
           
static int ETIMEDOUT
           
static int ETOOMANYREFS
           
static int ETXTBSY
           
static int EUSERS
           
static int EWOULDBLOCK
           
static int EXDEV
           
 
Fields inherited from class tcl.lang.TclException
errIndex
 
Constructor Summary
TclPosixException(Interp interp, int errno, boolean appendPosixMsg, String errorMsg)
          Creates a TclException with the appropiate Tcl error message for posix error, and sets the interp's error code to a 3 element list (eg.
TclPosixException(Interp interp, int errno, String errorMsg)
          Creates a TclException with the appropiate Tcl error message for posix error, and sets the interp's error code to a 3 element list (eg.
TclPosixException(Interp interp, IOException ioException, boolean appendPosixMsg, String errorMessage)
          Construct a TclPosixException from a Java IOException
 
Method Summary
 int getErrorNo()
           
 
Methods inherited from class tcl.lang.TclException
getCompletionCode, setCompletionCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EPERM

public static final int EPERM
See Also:
Constant Field Values

ENOENT

public static final int ENOENT
See Also:
Constant Field Values

ESRCH

public static final int ESRCH
See Also:
Constant Field Values

EINTR

public static final int EINTR
See Also:
Constant Field Values

EIO

public static final int EIO
See Also:
Constant Field Values

ENXIO

public static final int ENXIO
See Also:
Constant Field Values

E2BIG

public static final int E2BIG
See Also:
Constant Field Values

ENOEXEC

public static final int ENOEXEC
See Also:
Constant Field Values

EBADF

public static final int EBADF
See Also:
Constant Field Values

ECHILD

public static final int ECHILD
See Also:
Constant Field Values

EDEADLK

public static final int EDEADLK
See Also:
Constant Field Values

ENOMEM

public static final int ENOMEM
See Also:
Constant Field Values

EACCES

public static final int EACCES
See Also:
Constant Field Values

EFAULT

public static final int EFAULT
See Also:
Constant Field Values

ENOTBLK

public static final int ENOTBLK
See Also:
Constant Field Values

EBUSY

public static final int EBUSY
See Also:
Constant Field Values

EEXIST

public static final int EEXIST
See Also:
Constant Field Values

EXDEV

public static final int EXDEV
See Also:
Constant Field Values

ENODEV

public static final int ENODEV
See Also:
Constant Field Values

ENOTDIR

public static final int ENOTDIR
See Also:
Constant Field Values

EISDIR

public static final int EISDIR
See Also:
Constant Field Values

EINVAL

public static final int EINVAL
See Also:
Constant Field Values

ENFILE

public static final int ENFILE
See Also:
Constant Field Values

EMFILE

public static final int EMFILE
See Also:
Constant Field Values

ENOTTY

public static final int ENOTTY
See Also:
Constant Field Values

ETXTBSY

public static final int ETXTBSY
See Also:
Constant Field Values

EFBIG

public static final int EFBIG
See Also:
Constant Field Values

ENOSPC

public static final int ENOSPC
See Also:
Constant Field Values

ESPIPE

public static final int ESPIPE
See Also:
Constant Field Values

EROFS

public static final int EROFS
See Also:
Constant Field Values

EMLINK

public static final int EMLINK
See Also:
Constant Field Values

EPIPE

public static final int EPIPE
See Also:
Constant Field Values

EDOM

public static final int EDOM
See Also:
Constant Field Values

ERANGE

public static final int ERANGE
See Also:
Constant Field Values

EAGAIN

public static final int EAGAIN
See Also:
Constant Field Values

EWOULDBLOCK

public static final int EWOULDBLOCK
See Also:
Constant Field Values

EINPROGRESS

public static final int EINPROGRESS
See Also:
Constant Field Values

EALREADY

public static final int EALREADY
See Also:
Constant Field Values

ENOTSOCK

public static final int ENOTSOCK
See Also:
Constant Field Values

EDESTADDRREQ

public static final int EDESTADDRREQ
See Also:
Constant Field Values

EMSGSIZE

public static final int EMSGSIZE
See Also:
Constant Field Values

EPROTOTYPE

public static final int EPROTOTYPE
See Also:
Constant Field Values

ENOPROTOOPT

public static final int ENOPROTOOPT
See Also:
Constant Field Values

EPROTONOSUPPORT

public static final int EPROTONOSUPPORT
See Also:
Constant Field Values

ESOCKTNOSUPPORT

public static final int ESOCKTNOSUPPORT
See Also:
Constant Field Values

EOPNOTSUPP

public static final int EOPNOTSUPP
See Also:
Constant Field Values

EPFNOSUPPORT

public static final int EPFNOSUPPORT
See Also:
Constant Field Values

EAFNOSUPPORT

public static final int EAFNOSUPPORT
See Also:
Constant Field Values

EADDRINUSE

public static final int EADDRINUSE
See Also:
Constant Field Values

EADDRNOTAVAIL

public static final int EADDRNOTAVAIL
See Also:
Constant Field Values

ENETDOWN

public static final int ENETDOWN
See Also:
Constant Field Values

ENETUNREACH

public static final int ENETUNREACH
See Also:
Constant Field Values

ENETRESET

public static final int ENETRESET
See Also:
Constant Field Values

ECONNABORTED

public static final int ECONNABORTED
See Also:
Constant Field Values

ECONNRESET

public static final int ECONNRESET
See Also:
Constant Field Values

ENOBUFS

public static final int ENOBUFS
See Also:
Constant Field Values

EISCONN

public static final int EISCONN
See Also:
Constant Field Values

ENOTCONN

public static final int ENOTCONN
See Also:
Constant Field Values

ESHUTDOWN

public static final int ESHUTDOWN
See Also:
Constant Field Values

ETOOMANYREFS

public static final int ETOOMANYREFS
See Also:
Constant Field Values

ETIMEDOUT

public static final int ETIMEDOUT
See Also:
Constant Field Values

ECONNREFUSED

public static final int ECONNREFUSED
See Also:
Constant Field Values

ELOOP

public static final int ELOOP
See Also:
Constant Field Values

ENAMETOOLONG

public static final int ENAMETOOLONG
See Also:
Constant Field Values

EHOSTDOWN

public static final int EHOSTDOWN
See Also:
Constant Field Values

EHOSTUNREACH

public static final int EHOSTUNREACH
See Also:
Constant Field Values

ENOTEMPTY

public static final int ENOTEMPTY
See Also:
Constant Field Values

EPROCLIM

public static final int EPROCLIM
See Also:
Constant Field Values

EUSERS

public static final int EUSERS
See Also:
Constant Field Values

EDQUOT

public static final int EDQUOT
See Also:
Constant Field Values

ESTALE

public static final int ESTALE
See Also:
Constant Field Values

EREMOTE

public static final int EREMOTE
See Also:
Constant Field Values

EBADRPC

public static final int EBADRPC
See Also:
Constant Field Values

ERPCMISMATCH

public static final int ERPCMISMATCH
See Also:
Constant Field Values

EPROGUNAVAIL

public static final int EPROGUNAVAIL
See Also:
Constant Field Values

EPROGMISMATCH

public static final int EPROGMISMATCH
See Also:
Constant Field Values

EPROCUNAVAIL

public static final int EPROCUNAVAIL
See Also:
Constant Field Values

ENOLCK

public static final int ENOLCK
See Also:
Constant Field Values

ENOSYS

public static final int ENOSYS
See Also:
Constant Field Values

EFTYPE

public static final int EFTYPE
See Also:
Constant Field Values
Constructor Detail

TclPosixException

public TclPosixException(Interp interp,
                         int errno,
                         String errorMsg)
                  throws TclException
Creates a TclException with the appropiate Tcl error message for posix error, and sets the interp's error code to a 3 element list (eg. {"posix" "eexist" {file already exists}}). Does not append posix message to intepreter result.

Parameters:
interp - Current interpretor, or null
errno - code of posix error
errorMsg - message to output to user
Throws:
TclException

TclPosixException

public TclPosixException(Interp interp,
                         int errno,
                         boolean appendPosixMsg,
                         String errorMsg)
                  throws TclException
Creates a TclException with the appropiate Tcl error message for posix error, and sets the interp's error code to a 3 element list (eg. {"posix" "eexist" {file already exists}}).

Parameters:
interp - Current interpretor, or null
errno - code of posix error
appendPosixMsg - if true, appends posix message to errorMsg in interpreter result
errorMsg - message to output to user
Throws:
TclException

TclPosixException

public TclPosixException(Interp interp,
                         IOException ioException,
                         boolean appendPosixMsg,
                         String errorMessage)
                  throws TclException
Construct a TclPosixException from a Java IOException

Parameters:
interp - current interpreter
ioException - The IOException that was thrown
appendPosixMsg - true if the Posix message should be appended to the errorMessage in the interpreter result
errorMessage - error message to return in interpreter result
Throws:
TclException
Method Detail

getErrorNo

public int getErrorNo()
Returns:
the error number for this TclPosixException


Copyright © 2015. All rights reserved.