Error Generator #69
Aliases: Error Generator
20 verbs · 7 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
raise | this none this | rxd | #69 | 2 |
E_NONE | this none this | rxd | #69 | 2 |
E_TYPE | this none this | rxd | #69 | 2 |
E_DIV | this none this | rxd | #69 | 2 |
E_PERM | this none this | rxd | #69 | 2 |
E_PROPNF | this none this | rxd | #69 | 2 |
E_VERBNF | this none this | rxd | #69 | 2 |
E_VARNF | this none this | rxd | #69 | 2 |
E_INVIND | this none this | rxd | #69 | 2 |
E_RECMOVE | this none this | rxd | #69 | 1 |
E_MAXREC | this none this | rxd | #69 | 2 |
E_RANGE | this none this | rxd | #69 | 2 |
E_ARGS | this none this | rxd | #69 | 2 |
E_NACC | this none this | rxd | #69 | 2 |
E_INVARG | this none this | rxd | #69 | 2 |
E_QUOTA | this none this | rxd | #69 | 3 |
accept | this none this | rxd | #69 | 1 |
name | this none this | rxd | #69 | 2 |
toerr | this none this | rxd | #69 | 16 |
match_error | this none this | rxd | #69 | 8 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
names | #69 | rc | #36 | list of 16{"E_NONE", "E_TYPE", "E_DIV", "E_PERM", "E_PROPNF", "E_VERBNF", "E_VARNF", "E_INVIND", "E_RECMOVE", "E_MAXREC", "E_RANGE", "E_ARGS", "E_NACC", "E_INVARG", "E_QUOTA", "E_FLOAT"} |
all_errors | #69 | r | #36 | list of 16{E_NONE, E_TYPE, E_DIV, E_PERM, E_PROPNF, E_VERBNF, E_VARNF, E_INVIND, E_RECMOVE, E_MAXREC, E_RANGE, E_ARGS, E_NACC, E_INVARG, E_QUOTA, E_FLOAT} |
key | #1 | c | #36 | <clear> |
aliases | #1 | rc | #36 | {"Error Generator"} |
description | #1 | rc | #36 | {"Object to automatically generate errors.", "", "raise(error) actually raises the error."} |
object_size | #1 | r | #36 | {7914, -1090650497} |
html | #1 | rc | #36 | <clear> |
Ancestry
Ancestors (nearest first): #1 Root Class
Children: none
Source
raise
Referenced by
- #10:count_bg_players line 1:
$error:raise - #24:newt_player line 4:
$error:raise - #24:newt_player line 6:
$error:raise - #24:newt_player line 8:
$error:raise - #61:add_news line 2:
$error:raise - #81:gc line 2:
$error:raise - #99:do line 17:
$error:raise
Source
1raise(@args); 2"this:(this.names[tonum(args[1]) + 1])()";
E_NONE
Referenced by
none
Source
1"... hmmm... don't know how to raise E_NONE..."; 2return E_NONE;
E_TYPE
Referenced by
none
Source
1"...raise E_TYPE ..."; 21[2];
E_DIV
Referenced by
none
Source
1"...raise E_DIV ..."; 21 / 0;
E_PERM
Referenced by
none
Source
1"...raise E_PERM ..."; 2this.owner.password;
E_PROPNF
Referenced by
none
Source
1"...raise E_PROPNF ..."; 2this.a;
E_VERBNF
Referenced by
none
Source
1"...raise E_VERBNF ..."; 2this:a();
E_VARNF
Referenced by
none
Source
1"...raise E_VARNF ..."; 2a;
E_INVIND
Referenced by
none
Source
1"...raise E_INVIND ..."; 2#-1.a;
E_RECMOVE
Referenced by
none
Source
1move(this, this);
E_MAXREC
Referenced by
none
Source
1"...raise E_MAXREC ..."; 2this:(verb)();
E_RANGE
Referenced by
none
Source
1"...raise E_RANGE ..."; 2{}[1];
E_ARGS
Referenced by
none
Source
1"...raise E_ARGS ..."; 2toint();
E_NACC
Referenced by
none
Source
1"...raise E_NACC ..."; 2move($hacker, this);
E_INVARG
Referenced by
none
Source
1"...raise E_INVARG ..."; 2parent(#-1);
E_QUOTA
Referenced by
none
Source
1set_task_perms($no_one); 2"...raise E_QUOTA ..."; 3create($thing);
accept
Referenced by
none
Source
1return 0;
name
Referenced by
none
Source
1return toliteral(args[1]); 2"return this.names[tonum(args[1]) + 1];";
toerr
Referenced by
none
Source
1"toerr -- given a string or a number, return the corresponding ERR."; 2"If not found or an execution error, return -1."; 3if (typeof(string = args[1]) == STR) 4for e in (this.all_errors) 5if (tostr(e) == string) 6return e; 7endif 8endfor 9elseif (typeof(number = args[1]) == INT) 10for e in (this.all_errors) 11if (toint(e) == number) 12return e; 13endif 14endfor 15endif 16return -1;
match_error
Referenced by
none
Source
1"match_error -- searches for tostr(E_WHATEVER) in a string, returning the ERR, returns -1 if no error string is found."; 2string = args[1]; 3for e in (this.all_errors) 4if (index(string, tostr(e))) 5return e; 6endif 7endfor 8return -1;