Top Description Fields Constructors Methods
org.python.base

public Class InterpreterError

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.python.base.MissingFeature

Internal error thrown when the Python implementation cannot be relied on to work. A Python exception (a PyObject that might be caught in Python code) is not then appropriate. Typically thrown during initialisation or for irrecoverable internal errors.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
InterpreterError(String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor specifying a message.

public
InterpreterError(Throwable
a Java exception behind the interpreter error
cause
,
String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor specifying a cause and a message.

public
InterpreterError(Throwable
a Java exception behind the interpreter error
cause
)

Constructor specifying a cause.

Method Summary

Modifier and TypeMethod and Description
private static String

Returns:

non-null msg or ""
notNull
(String
a string or null
msg
,
String
a string or null
defaultMsg
)

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

InterpreterErrorback to summary
public InterpreterError(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

InterpreterErrorback to summary
public InterpreterError(Throwable cause, String msg, Object... args)

Constructor specifying a cause and a message.

Parameters
cause:Throwable

a Java exception behind the interpreter error

msg:String

a Java format string for the message

args:Object[]

to insert in the format string

InterpreterErrorback to summary
public InterpreterError(Throwable cause)

Constructor specifying a cause.

Parameters
cause:Throwable

a Java exception behind the interpreter error

Method Detail

notNullback to summary
private static String notNull(String msg, String defaultMsg)
Parameters
msg:String

a string or null

defaultMsg:String

a string or null

Returns:String

non-null msg or ""