コード例 #1
0
 /// <summary>
 /// Returns the string of the code.
 /// </summary>
 /// <returns> the code. </returns>
 public virtual string code()
 {
     if (_te != null)
     {
         return(_te.code());
     }
     return(_code);
 }
コード例 #2
0
 /// <summary>
 /// Constructor for Dynamic Error.
 /// </summary>
 /// <param name="te">
 ///            is the error type. </param>
 public DynamicError(TypeError te) : base(te.reason())
 {
     _te   = te;
     _code = te.code();
 }