Class DeviceResourceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DeviceResourceException
    extends java.lang.RuntimeException
    Thrown when allocation of an SWT device resource fails
    Since:
    3.1
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Returns the cause of this throwable or null if the cause is nonexistent or unknown.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DeviceResourceException

        public DeviceResourceException​(DeviceResourceDescriptor missingResource,
                                       java.lang.Throwable cause)
        Creates a DeviceResourceException indicating an error attempting to create a resource and an embedded low-level exception describing the cause
        Parameters:
        missingResource - the failed resource
        cause - cause of the exception (or null if none)
      • DeviceResourceException

        public DeviceResourceException​(DeviceResourceDescriptor missingResource)
        Creates a DeviceResourceException indicating an error attempting to create a resource
        Parameters:
        missingResource - the failed resource
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Returns the cause of this throwable or null if the cause is nonexistent or unknown.
        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        the cause or null
        Since:
        3.1