java.awt.geom

Class IllegalPathStateException

Implemented Interfaces:
Serializable

public class IllegalPathStateException
extends RuntimeException

The IllegalPathStateException represents an exception that is thrown if an operation is performed on a path that is in an illegal state with respect to the particular operation being performed, such as appending a path segment to a GeneralPath without an initial moveto.
See Also:
Serialized Form

Constructor Summary

IllegalPathStateException()
Constructs an IllegalPathStateException with no detail message.
IllegalPathStateException(String s)
Constructs an IllegalPathStateException with the specified detail message.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

IllegalPathStateException

public IllegalPathStateException()
Constructs an IllegalPathStateException with no detail message.
Since:
1.2
Usages and Demos :

View More Examples of IllegalPathStateException()
   1:                     default: {
   2:                         throw new IllegalPathStateException();
   3:                     }
   4:                 }
   5:                 iterator.next();

View Full Code Here
   1:                     default: {
   2:                         throw new IllegalPathStateException();
   3:                     }
   4:                 }
   5:                 iterator.next();

View Full Code Here
   1:                 case SEG_CUBICTO: index+=6; break;
   2:                 default: throw new IllegalPathStateException();
   3:             }
   4:         ...
   5:                 case SEG_MOVETO:  n=2; break;
   6:                 default: throw new IllegalPathStateException();
   7:             }
   8:         ...
   9:                 default: {
  10:                     throw new IllegalPathStateException();
  11:                 }

View Full Code Here
   1:                     if (arrayLength != start) {
   2:                         throw new IllegalPathStateException();
   3:                     }
   4:         ...
   5:                 default: {
   6:                     throw new IllegalPathStateException();
   7:                 }
   8:             }
   9:             if (arrayLength+n >= array.length) {

View Full Code Here
   1:                     if (length != start) {
   2:                         throw new IllegalPathStateException();
   3:                     }
   4:         ...
   5:                 default: {
   6:                     throw new IllegalPathStateException();
   7:                 }
   8:             }
   9:             if (length+n >= array.length) {

View Full Code Here

IllegalPathStateException

public IllegalPathStateException(String s)
Constructs an IllegalPathStateException with the specified detail message.
Parameters:
s - the detail message
Since:
1.2
Usages and Demos :

View More Examples of IllegalPathStateException(String s)
   1:             final IllegalPathStateException e;
   2:             e = new IllegalPathStateException(exception.getLocalizedMessage());
   3:             e.initCause(exception);
   4:             throw e;
   5:         }

View Full Code Here
   1:             switch (nextType) {
   2:                     throw new IllegalPathStateException(Integer.toString(nextType));
   3:                 }
   4:                     point.x  = getX1();
   5:                     point.y  = getY1();

View Full Code Here