A type of error object that encapsulates HTTP 2 error information.
An http.h2_error object has fields:
name: The error name: a short identifier for this errorcode: The error codedescription: The description of the error codemessage: An error messagetraceback: A traceback taken at the point the error was thrownstream_error: A boolean that indicates if this is a stream level or protocol level error
A table containing errors as defined by the HTTP 2 specification.
It can be indexed by error name (e.g. errors.PROTOCOL_ERROR) or numeric code (e.g. errors[0x1]).
Returns a boolean indicating if the object ob is an http.h2_error object
Creates a new error object from the passed table.
The table should have the form of an error object i.e. with fields name, code, message, traceback, etc.
Fields name, code and description are inherited from the parent h2_error object if not specified.
stream_error defaults to false.
Creates a new error object, recording a traceback from the current thread.
Creates and throws a new error.
If cond is truthy, returns cond, ...
If cond is falsy (i.e. false or nil), throws an error with the first element of ... as the message.