Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 190 additions & 34 deletions src/bundle/bundle.cc

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions src/foundation/include/sourcemeta/blaze/foundation_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,29 @@ class SOURCEMETA_BLAZE_FOUNDATION_EXPORT SchemaRelativeMetaschemaResolutionError
"according to the JSON Schema specification"} {}
};

/// @ingroup foundation
/// An error that represents a schema identifier that collides with one
/// reserved by this implementation for internal bookkeeping
class SOURCEMETA_BLAZE_FOUNDATION_EXPORT SchemaReservedIdentifierError
: public std::exception {
public:
SchemaReservedIdentifierError(const std::string_view identifier,
const char *message)
: identifier_{identifier}, message_{message} {}

[[nodiscard]] auto what() const noexcept -> const char * override {
return this->message_;
}

[[nodiscard]] auto identifier() const noexcept -> std::string_view {
return this->identifier_;
}

private:
std::string identifier_;
const char *message_;
};

/// @ingroup foundation
/// An error that represents a schema vocabulary error
class SOURCEMETA_BLAZE_FOUNDATION_EXPORT SchemaVocabularyError
Expand Down
Loading
Loading