MIDP3.0

javax.microedition.lcdui
Class DisplayCapabilityException

java.lang.Object
  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.

Since:
MIDP 3.0
See Also:
Displayable, Display

Constructor Summary
DisplayCapabilityException()
          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

DisplayCapabilityException

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


DisplayCapabilityException

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

Parameters:
s - the detail message

MIDP3.0

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.