io.github.cloudify.scala.spdf.Exceptions.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spdf_2.11 Show documentation
Show all versions of spdf_2.11 Show documentation
Create PDFs using plain old HTML+CSS. Uses wkhtmltopdf on the back-end which renders HTML using Webkit.
The newest version!
package io.github.cloudify.scala.spdf
import java.net.URL
/**
* Thrown in case the path to wkhtmltopdf is invalid
*/
case class NoExecutableException(path: String) extends
Exception("No wkhtmltopdf executable found at %s".format(path))
/**
* Thrown in case a URL with unsupported protocol is used as source
* @param url
*/
case class UnsupportedProtocolException(url: URL) extends
Exception("The protocol is not supported by wkhtmltopdf".format(url.getProtocol))