MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / constructor

Method constructor

scripts/mars-api.mjs:104–109  ·  view source on GitHub ↗
(message, { status = null, cause = null } = {})

Source from the content-addressed store, hash-verified

102
103export class MarsApiError extends Error {
104 constructor(message, { status = null, cause = null } = {}) {
105 super(message);
106 this.name = "MarsApiError";
107 this.status = status;
108 if (cause) this.cause = cause;
109 }
110}
111
112function trimTrailingSlash(value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected