Package org.eclipse.jface.resource
Class DeviceResourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.jface.resource.DeviceResourceException
-
- All Implemented Interfaces:
Serializable
public class DeviceResourceException extends RuntimeException
Thrown when allocation of an SWT device resource fails- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceResourceException(DeviceResourceDescriptor missingResource)
Creates a DeviceResourceException indicating an error attempting to create a resourceDeviceResourceException(DeviceResourceDescriptor missingResource, Throwable cause)
Creates a DeviceResourceException indicating an error attempting to create a resource and an embedded low-level exception describing the cause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
Returns the cause of this throwable ornull
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
-
-
-
-
Constructor Detail
-
DeviceResourceException
public DeviceResourceException(DeviceResourceDescriptor missingResource, 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 resourcecause
- 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
-
-