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

Classes

class  Error
 An error from a JavaScript operation. 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.

Namespaces

namespace  ultralight
 Root namespace for every public Ultralight type, function, and enumeration.
namespace  ultralight::js
 Type-checked JavaScript bridge between C++ and web pages.

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 JavaScript operation that can fail: a T or a js::Error.

Enumerations

enum class  ErrorType : unsigned {
  Error = 0 , TypeError , RangeError , SyntaxError ,
  ReferenceError
}
 The type of a JavaScript error, matching the standard error constructors. More...

Go to the source code of this file.