
de.carne.swt.graphics.ResourceException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-swt-gtk-linux-x86_64 Show documentation
Show all versions of java-swt-gtk-linux-x86_64 Show documentation
Common SWT code shared between my projects
The newest version!
/*
* Copyright (c) 2007-2020 Holger de Carne and contributors, All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package de.carne.swt.graphics;
import de.carne.util.Exceptions;
/**
* Indicates that a SWT {@linkplain org.eclipse.swt.graphics.Resource} is not accessible.
*/
public class ResourceException extends Exception {
private static final long serialVersionUID = 515875293439048677L;
/**
* Construct {@linkplain ResourceException}.
*
* @param message The exception message.
*/
public ResourceException(String message) {
super(message);
}
/**
* Construct {@linkplain ResourceException}.
*
* @param cause The causing exception.
*/
public ResourceException(Throwable cause) {
super(Exceptions.toString(cause), cause);
}
/**
* Construct {@linkplain ResourceException}.
*
* @param message The exception message.
* @param cause The causing exception.
*/
public ResourceException(String message, Throwable cause) {
super(message, cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy