docs
Loading...
Searching...
No Matches
Error.h

Classes

class  Error
 The reason a DOM operation failed. More...
struct  Checked_t
 The type of dom::Checked. More...

Functions

template<typename T>
requires std::is_default_constructible_v<T>
T OrEmpty (Result< T > result)
 Get a Result's value, or a default-constructed T if it holds an error.

Variables

constexpr Checked_t Checked {}
 Pass to a DOM call to get a dom::Result holding the reason for a failure instead of an empty value.

Namespaces

namespace  ultralight
 Root namespace for every public Ultralight type, function, and enumeration.
namespace  ultralight::dom
 Direct C++ access to modify page elements and handle events.

Typedefs

template<typename T, typename E = Error>
using Expected = ultralight::detail::Expected<T, E>
 A value of type T or an error of type E (like std::expected).
template<typename T>
using Result = Expected<T, Error>
 The result of a DOM operation that can fail (either a T or a dom::Error).

Enumerations

enum class  ErrorType : unsigned {
  None = 0 , Unknown , SyntaxError , InvalidCharacterError ,
  HierarchyRequestError , NotFoundError , NoModificationAllowedError , InvalidStateError ,
  IndexSizeError , NotSupportedError , TypeError , InvalidNodeTypeError ,
  WrongDocumentError
}
 The kinds of DOM exception a dom::Error can hold (the web's DOMException names, plus TypeError). More...

Go to the source code of this file.