Decorator for SnakFormatter that handles PropertyDataTypeLookupException and MismatchingDataValueTypeException by placing the appropriate warning in the snakFormatter's output.
More...
|
const | OPT_LANG = ValueFormatter::OPT_LANG |
| Options key for controlling the output language.
|
|
const | FORMAT_PLAIN = 'text/plain' |
| Output format types.
|
|
const | FORMAT_WIKI = 'text/x-wiki' |
|
const | FORMAT_HTML = 'text/html' |
|
const | FORMAT_HTML_DIFF = 'text/html; disposition=diff' |
|
const | FORMAT_HTML_VERBOSE = 'text/html; disposition=verbose' |
|
const | FORMAT_HTML_VERBOSE_PREVIEW = 'text/html; disposition=verbose-preview' |
|
const | OPT_ON_ERROR = 'on-error' |
| Options key for controlling error handling.
|
|
const | ON_ERROR_WARN = 'warn' |
| Value for the OPT_ON_ERROR option indicating that recoverable errors should cause a warning to be show to the user.
|
|
const | ON_ERROR_FAIL = 'fail' |
| Value for the OPT_ON_ERROR option indicating that recoverable errors should cause the formatting to fail with an exception.
|
|
Decorator for SnakFormatter that handles PropertyDataTypeLookupException and MismatchingDataValueTypeException by placing the appropriate warning in the snakFormatter's output.
A fallback ValueFormatter can be used to provide basic formatting for values in the presence of snak formatting errors.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler