1#ifndef SOURCEMETA_BLAZE_DOCUMENTATION_ERROR_H_
2#define SOURCEMETA_BLAZE_DOCUMENTATION_ERROR_H_
4#ifndef SOURCEMETA_BLAZE_DOCUMENTATION_EXPORT
5#include <sourcemeta/blaze/documentation_export.h>
8#include <sourcemeta/core/jsonpointer.h>
15namespace sourcemeta::blaze {
22#pragma warning(disable : 4251 4275)
30 :
public std::exception {
37 : message_{message}, location_{std::move(
location)},
40 [[nodiscard]]
auto what() const noexcept -> const
char *
override {
41 return this->message_;
46 [[nodiscard]]
auto subject() const noexcept -> std::string_view {
47 return this->subject_;
52 -> const sourcemeta::core::Pointer & {
53 return this->location_;
58 sourcemeta::core::Pointer location_;
DocumentationError(const char *message, sourcemeta::core::Pointer location, std::string subject="")
Definition documentation_error.h:35
auto location() const noexcept -> const sourcemeta::core::Pointer &
Where in the schema the trouble is.
Definition documentation_error.h:51
auto subject() const noexcept -> std::string_view
Definition documentation_error.h:46