Html Exception Formatter

a Java library to format exceptions to pretty html

Лицензия

Лицензия

Категории

Категории

ORM Данные
Группа

Группа

org.slieb
Идентификатор

Идентификатор

html-exception-formatter
Последняя версия

Последняя версия

1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Html Exception Formatter
a Java library to format exceptions to pretty html
Ссылка на сайт

Ссылка на сайт

https://stefanliebenberg.github.io/html-exception-formatter
Система контроля версий

Система контроля версий

https://github.com/StefanLiebenberg/html-exception-formatter

Скачать html-exception-formatter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.slieb/html-exception-formatter/ -->
<dependency>
    <groupId>org.slieb</groupId>
    <artifactId>html-exception-formatter</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.slieb/html-exception-formatter/
implementation 'org.slieb:html-exception-formatter:1.3'
// https://jarcasting.com/artifacts/org.slieb/html-exception-formatter/
implementation ("org.slieb:html-exception-formatter:1.3")
'org.slieb:html-exception-formatter:jar:1.3'
<dependency org="org.slieb" name="html-exception-formatter" rev="1.3">
  <artifact name="html-exception-formatter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.slieb', module='html-exception-formatter', version='1.3')
)
libraryDependencies += "org.slieb" % "html-exception-formatter" % "1.3"
[org.slieb/html-exception-formatter "1.3"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.slieb : throwable-interfaces jar 1.10
commons-io : commons-io jar 2.4
commons-lang : commons-lang jar 2.6
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

html-exception-formatter

a Java library to format exceptions to pretty html

Usage

Very basic usage

  String html = new HtmlExceptionsFormatter().toString(exception);

Setting Options

  HtmlExceptionFormatOptions options = new HtmlExceptionFormatOptions();
  options.setPrintDetails(true);
  String html = new HtmlExceptionsFormatter().toString(exception);

Non Exception messages

  HtmlExceptionFormatOptions options = new HtmlExceptionFormatOptions();
  options.setPrintDetails(true);
  String html = new HtmlExceptionsFormatter().toString("404 Route not found", "The selected \"/noPath\" route wasn't found.");

Writing into Appendable

  HtmlExceptionFormatOptions options = new HtmlExceptionFormatOptions();
  options.setPrintDetails(true);
  new HtmlExceptionsFormatter().formatMessage(System.err, exception);

Версии библиотеки

Версия
1.3
1.2
1.1
1.0