Полезная информация

Java Fundamental Classes Reference

Previous Chapter 12
The java.lang Package
Next
 

IllegalStateException

Name

IllegalStateException

Synopsis

Class Name:

java.lang.IllegalStateException

Superclass:

java.lang.RuntimeException

Immediate Subclasses:

None

Interfaces Implemented:

None

Availability:

New as of JDK 1.1

Description

An IllegalStateException is thrown to indicate that a method has been invoked when the run-time environment is in an inappropriate state for the requested operation.

Class Summary

public class java.lang.IllegalStateException
             extends java.lang.RuntimeException {
  // Constructors
  public IllegalStateException();
  public IllegalStateException(String s);
}

Constructors

IllegalStateException

public IllegalStateException()

Description

This constructor creates an IllegalStateException with no associated detail message.

public IllegalStateException(String s)

Parameters

s

The detail message.

Description

This constructor creates an IllegalStateException with the specified detail message.

Inherited Methods

Method

Inherited From

Method

Inherited From

clone()

Object

equals(Object)

Object

fillInStackTrace()

Throwable

finalize()

Object

getClass()

Object

getLocalizedMessage()

Throwable

getMessage()

Throwable

hashCode()

Object

notify()

Object

notifyAll()

Object

printStackTrace()

Throwable

printStackTrace(PrintStream)

Throwable

printStackTrace(PrintWriter)

Throwable

toString()

Object

wait()

Object

wait(long)

Object

wait(long, int)

Object

   

See Also

Exception, Object, RuntimeException, Throwable


Previous Home Next
IllegalMonitorStateException Book Index IllegalThreadStateException

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java