APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.fs

pack-priv Class UnixException

extends Exception
Class Inheritance
Imports
java.nio.file.*, java.io.IOException

Internal exception thrown by native methods when error detected.

Field Summary

Modifier and TypeField and Description
private int
private String
pack-priv static final long

Constructor Summary

AccessConstructor and Description
pack-priv
UnixException(int errno)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv IOException
pack-priv int
pack-priv String
public Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

pack-priv void
pack-priv void
pack-priv void
setError(int errno)

private IOException
translateToIOException(String file, String other)

Map well known errors to specific exceptions where possible; otherwise return more general FileSystemException.

Field Detail

errnoback to summary
private int errno
msgback to summary
private String msg
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

UnixExceptionback to summary
pack-priv UnixException(int errno)
UnixExceptionback to summary
pack-priv UnixException(String msg)

Method Detail

asIOExceptionback to summary
pack-priv IOException asIOException(UnixPath file)
errnoback to summary
pack-priv int errno()
errorStringback to summary
pack-priv String errorString()
fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Annotations
@Override
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Annotations
@Override
rethrowAsIOExceptionback to summary
pack-priv void rethrowAsIOException(UnixPath file, UnixPath other) throws IOException
rethrowAsIOExceptionback to summary
pack-priv void rethrowAsIOException(UnixPath file) throws IOException
setErrorback to summary
pack-priv void setError(int errno)
translateToIOExceptionback to summary
private IOException translateToIOException(String file, String other)

Map well known errors to specific exceptions where possible; otherwise return more general FileSystemException.