com.vaadin.server.PaintException Maven / Gradle / Ivy
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.server;
import java.io.IOException;
/**
* PaintExcepection
is thrown if painting of a component fails.
*
* @author Vaadin Ltd.
* @since 3.0
*/
@SuppressWarnings("serial")
public class PaintException extends IOException {
/**
* Constructs an instance of PaintExeception
with the specified
* detail message.
*
* @param msg
* the detail message.
*/
public PaintException(String msg) {
super(msg);
}
/**
* Constructs an instance of PaintExeception
with the specified
* detail message and cause.
*
* @param msg
* the detail message.
* @param cause
* the cause
*/
public PaintException(String msg, Throwable cause) {
super(msg, cause);
}
/**
* Constructs an instance of PaintExeception
from IOException.
*
* @param exception
* the original exception.
*/
public PaintException(IOException exception) {
super(exception.getMessage());
}
}