Error Generator #69

Parent #1Owner #36Flags readSource RPG Core/rpgcore-patched.db

Aliases: Error Generator

20 verbs · 7 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
raisethis none thisrxd#692
E_NONEthis none thisrxd#692
E_TYPEthis none thisrxd#692
E_DIVthis none thisrxd#692
E_PERMthis none thisrxd#692
E_PROPNFthis none thisrxd#692
E_VERBNFthis none thisrxd#692
E_VARNFthis none thisrxd#692
E_INVINDthis none thisrxd#692
E_RECMOVEthis none thisrxd#691
E_MAXRECthis none thisrxd#692
E_RANGEthis none thisrxd#692
E_ARGSthis none thisrxd#692
E_NACCthis none thisrxd#692
E_INVARGthis none thisrxd#692
E_QUOTAthis none thisrxd#693
acceptthis none thisrxd#691
namethis none thisrxd#692
toerrthis none thisrxd#6916
match_errorthis none thisrxd#698

Properties

PropertyDefinerFlagsOwnerValue
names#69rc#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#69r#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#1c#36<clear>
aliases#1rc#36{"Error Generator"}
description#1rc#36{"Object to automatically generate errors.", "", "raise(error) actually raises the error."}
object_size#1r#36{7914, -1090650497}
html#1rc#36<clear>

Ancestry

Ancestors (nearest first): #1 Root Class

Children: none

Source

raise

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

Source

1raise(@args);
2"this:(this.names[tonum(args[1]) + 1])()";

E_NONE

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"... hmmm... don't know how to raise E_NONE...";
2return E_NONE;

E_TYPE

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_TYPE ...";
21[2];

E_DIV

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_DIV ...";
21 / 0;

E_PERM

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_PERM ...";
2this.owner.password;

E_PROPNF

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_PROPNF ...";
2this.a;

E_VERBNF

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_VERBNF ...";
2this:a();

E_VARNF

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_VARNF ...";
2a;

E_INVIND

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_INVIND ...";
2#-1.a;

E_RECMOVE

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1move(this, this);

E_MAXREC

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_MAXREC ...";
2this:(verb)();

E_RANGE

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_RANGE ...";
2{}[1];

E_ARGS

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_ARGS ...";
2toint();

E_NACC

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_NACC ...";
2move($hacker, this);

E_INVARG

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1"...raise E_INVARG ...";
2parent(#-1);

E_QUOTA

Spec this none thisFlags rxdOwner #2Definer #69

Referenced by

none

Source

1set_task_perms($no_one);
2"...raise E_QUOTA ...";
3create($thing);

accept

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1return 0;

name

Spec this none thisFlags rxdOwner #36Definer #69

Referenced by

none

Source

1return toliteral(args[1]);
2"return this.names[tonum(args[1]) + 1];";

toerr

Spec this none thisFlags rxdOwner #36Definer #69

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

Spec this none thisFlags rxdOwner #36Definer #69

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;