ScriptStack 1.0.4
Loading...
Searching...
No Matches
ScriptStack.Runtime.ScriptStackException Class Reference
Inheritance diagram for ScriptStack.Runtime.ScriptStackException:
ScriptStack.Compiler.LexerException ScriptStack.Compiler.ParserException ScriptStack.Runtime.ExecutionException

Public Member Functions

 ScriptStackException ()
 ScriptStackException (string message)
 ScriptStackException (string message, Exception innerException)
override string ToString ()

Properties

new string Message [get]
string MessageTrace [get]

Detailed Description

Definition at line 8 of file ScriptStackException.cs.

Constructor & Destructor Documentation

◆ ScriptStackException() [1/3]

ScriptStack.Runtime.ScriptStackException.ScriptStackException ( )

Definition at line 20 of file ScriptStackException.cs.

21 {
22
23 message = "Keine weiteren Details.";
24
25 innerException = null;
26
27 }

◆ ScriptStackException() [2/3]

ScriptStack.Runtime.ScriptStackException.ScriptStackException ( string message)

Definition at line 29 of file ScriptStackException.cs.

30 {
31
32 this.message = message;
33
34 innerException = null;
35
36 }

◆ ScriptStackException() [3/3]

ScriptStack.Runtime.ScriptStackException.ScriptStackException ( string message,
Exception innerException )

Definition at line 38 of file ScriptStackException.cs.

39 {
40 this.message = message;
41 this.innerException = innerException;
42 }

Member Function Documentation

◆ ToString()

override string ScriptStack.Runtime.ScriptStackException.ToString ( )

Definition at line 44 of file ScriptStackException.cs.

45 {
46 return MessageTrace;
47 }

References MessageTrace.

Property Documentation

◆ Message

new string ScriptStack.Runtime.ScriptStackException.Message
get

Definition at line 53 of file ScriptStackException.cs.

54 {
55 get { return message; }
56 }

◆ MessageTrace

string ScriptStack.Runtime.ScriptStackException.MessageTrace
get

Definition at line 58 of file ScriptStackException.cs.

59 {
60
61 get
62 {
63
64 if (innerException != null)
65 {
66
67 string messageTrace = message + "\nFehlerquelle: ";
68
69 if (typeof(ScriptStackException).IsAssignableFrom(innerException.GetType()))
70 messageTrace += ((ScriptStackException) innerException).MessageTrace;
71
72 else
73 messageTrace += innerException.Message;
74
75 return
76 messageTrace;
77
78 }
79
80 else
81 return message;
82
83 }
84
85 }

Referenced by ToString().


The documentation for this class was generated from the following file: