Generator to generate various error codes and messages.
A problem or issue encountered while accessing or managing a database.
a random database error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.databaseError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.databaseError())}
Output (formatted as JSON value)
{} Copy
{}
Message displayed by a computer or software when a problem or mistake is encountered.
a random error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.error())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.error())}
Various categories conveying details about encountered errors.
a random error object word
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.errorObjectWord())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.errorObjectWord())}
Communication failure in the high-performance, open-source universal RPC framework.
a random grpc error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.gRPCError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.gRPCError())}
Failure or issue occurring within a client software that sends requests to web servers.
a random http client error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.httpClientError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.httpClientError())}
A problem with a web http request.
a random http error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.httpError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.httpError())}
Failure or issue occurring within a server software that recieves requests from clients.
a random http server error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.httpServerError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.httpServerError())}
Malfunction occuring during program execution, often causing abrupt termination or unexpected behavior.
a random runtime error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.runtimeError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.runtimeError())}
Occurs when input data fails to meet required criteria or format specifications.
a random validation error
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.validationError())} Copy
import { Faker } from "k6/x/faker"let faker = new Faker(11)export default function () { console.log(faker.error.validationError())}
Generator to generate various error codes and messages.