Пример #1
0
 public virtual object Suspend()
 {
     if (this.CanSuspend)
     {
         throw EX.Create(EXCode.EncoderFeatureNotImplemented, "Suspend");
     }
     else
     {
         throw new NotSupportedException();
     }
 }
Пример #2
0
 internal static Exception Create(EXCode code, params object[] data)
 {
     return(EX.Create(code, null, data));
 }
Пример #3
0
 internal static Exception Create(EXCode code, object expected, object actual)
 {
     return(EX.Create(code, null, expected, actual));
 }