UNPKG

godprotocol

Version:

A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.

25 lines (19 loc) 457 B
import Storage from "godprotocol/Datatypes/functions/storage.js"; class Err extends Storage{ constructor(config, account){ super(account) this.account = account; this.config = config this.type = 'error' } get_type = async ()=>{ return this.config.value.type } get_message = async ()=>{ return this.config.value.message } literal = async()=>{ return `[Error ${this.config.value.type}]` } } export default Err