ch.rabanti.picoxlsx4j.exception.StyleException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of picoxlsx4j Show documentation
Show all versions of picoxlsx4j Show documentation
PicoXLSX4j is a small Java library to create XLSX files (Microsoft Excel 2007 or newer) in an easy and native way. It is a direct port of PicoXLSX for C#: No need for an installation of Microsoft Office. No need for Office interop/DCOM or other bridging libraries. No need for 3rd party libraries. Pure usage of standard JRE
/*
* PicoXLSX4j is a small Java library to generate XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
* Copyright Raphael Stoeckli © 2018
* This library is licensed under the MIT License.
* You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
*/
package ch.rabanti.picoxlsx4j.exception;
/**
* Class for exceptions regarding Styles
* @author Raphael Stoeckli
*/
public class StyleException extends RuntimeException{
private String exceptionTitle;
/**
* Gets the title of the exception
* @return Title as string
*/
public String getExceptionTitle() {
return exceptionTitle;
}
/**
* Default constructor
*/
public StyleException()
{
super();
}
/**
* Constructor with passed message
* @param title Title of the exception
* @param message Message of the exception
*/
public StyleException(String title, String message)
{
super(title + ": " + message);
this.exceptionTitle = title;
}
}