Top Description Fields Constructors
org.python.core

public Class OSError

extends PyException
Class Inheritance
Imports
java.io.IOException, java.lang.invoke.MethodHandles

The Python OSError exception.

Field Summary

Modifier and TypeField and Description
private static final long
public static final PyType
TYPE

Hides org.python.core.PyException.TYPE.

The type object of Python OSError exceptions.

Constructor Summary

AccessConstructor and Description
protected
OSError(PyType
object being constructed
type
,
String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor for sub-class use specifying type.

public
OSError(String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor specifying a message.

public
OSError(IOException
the Java exception
ioe
)

Constructor based on the Java exception.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.python.core.PyException.serialVersionUID.

TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyException.TYPE.

The type object of Python OSError exceptions.

Annotations
@SuppressWarnings:hiding

Constructor Detail

OSErrorback to summary
protected OSError(PyType type, String msg, Object... args)

Constructor for sub-class use specifying type.

Parameters
type:PyType

object being constructed

msg:String

a Java format string for the message

args:Object[]

to insert in the format string

OSErrorback to summary
public OSError(String msg, Object... args)

Constructor specifying a message.

Parameters
msg:String

a Java format string for the message

args:Object[]

to insert in the format string

OSErrorback to summary
public OSError(IOException ioe)

Constructor based on the Java exception.

Parameters
ioe:IOException

the Java exception