Class DisplayCapabilityException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.microedition.lcdui.DisplayCapabilityException

public class DisplayCapabilityException
extends java.lang.RuntimeException

Indicates that a Display's capabilities are insufficient for the requested operation.

This exception may be thrown in two types of calls. First, it is thrown by the Display on a setCurrent() if the Displayable is incompatible with the Display's capabilities. Second, it is thrown by a Displayable's methods if the relevant feature is not supported by the Displayable's current Display.

MIDP 3.0
See Also:
Displayable, Display

Constructor Summary
          Constructs an exception with no specified detail message.
DisplayCapabilityException(java.lang.String s)
          Constructs an exception with the specified detail message.
Method Summary
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, printStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public DisplayCapabilityException()
Constructs an exception with no specified detail message.


public DisplayCapabilityException(java.lang.String s)
Constructs an exception with the specified detail message.

s - the detail message


Send a comment or suggestionVersion 3.0 of Mobile Information Device Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-2009 Motorola Inc. Portions copyright 1993-2002 Sun Microsystems, Inc. and Motorola, Inc. All Rights Reserved.