Home Reference Source
import {TIOResult} from '~/models/TIO/TIORun.js'
public class | source

TIOResult

Constructor Summary

Public Constructor
public

constructor(request: TIORun, data: ArrayBuffer)

Represents the result of a TIO execution.

Member Summary

Public Members
public get

Error output of TIO.

public get

All non-error output of TIO request.

public get

Checks if there is an error

Public Constructors

public constructor(request: TIORun, data: ArrayBuffer) source

Represents the result of a TIO execution.

Data is in form:

<ID>STDOUT<ID>STDERR<ID>

Params:

NameTypeAttributeDescription
request TIORun

TIO request creating result.

data ArrayBuffer

TIO result data.

Public Members

public get getError: string source

Error output of TIO. Empty = no error

public get getOutput: string source

All non-error output of TIO request.

public get isError: boolean source

Checks if there is an error