APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class IllegalCallerException

extends RuntimeException
Class Inheritance

Thrown to indicate that a method has been called by an inappropriate caller.
Since
9
See Also
StackWalker#getCallerClass

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
IllegalCallerException()

Constructs an IllegalCallerException with no detail message.

public
IllegalCallerException(String
the String that contains a detailed message (can be null)
s
)

Constructs an IllegalCallerException with the specified detail message.

public
IllegalCallerException(String
the detail message (can be null)
message
,
Throwable
the cause (can be null)
cause
)

Constructs a new exception with the specified detail message and cause.

public
IllegalCallerException(Throwable
the cause (can be null)
cause
)

Constructs a new exception with the specified cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

IllegalCallerExceptionback to summary
public IllegalCallerException()

Constructs an IllegalCallerException with no detail message.

IllegalCallerExceptionback to summary
public IllegalCallerException(String s)

Constructs an IllegalCallerException with the specified detail message.

Parameters
s:String

the String that contains a detailed message (can be null)

IllegalCallerExceptionback to summary
public IllegalCallerException(String message, Throwable cause)

Constructs a new exception with the specified detail message and cause.

Parameters
message:String

the detail message (can be null)

cause:Throwable

the cause (can be null)

IllegalCallerExceptionback to summary
public IllegalCallerException(Throwable cause)

Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters
cause:Throwable

the cause (can be null)