Skip to main content
Module

x/bencodex/mod.ts>DecodingError

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
class DecodingError
extends RangeError
import { DecodingError } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

An exception that is thrown when an error occurs while decoding a Bencodex.

Constructors

new
DecodingError(
message: string,
position: number,
)

Properties

readonly
kind: DecodingErrorKind

The code that represents the kind of error.

readonly
position: number

The position of the error in the buffer.