Inheritance: System.Exception, ISerializable
示例#1
0
 protected static string GetExceptionText(TargetException ex)
 {
     if ((ex is TargetMemoryException) || (ex is LocationInvalidException))
         return ex.Message;
     else
         return String.Format ("{0}: {1}", ex.GetType ().Name, ex.Message);
 }
示例#2
0
 protected static string GetExceptionText(TargetException ex)
 {
     if ((ex is TargetMemoryException) || (ex is LocationInvalidException))
     {
         return(ex.Message);
     }
     else
     {
         return(String.Format("{0}: {1}", ex.GetType().Name, ex.Message));
     }
 }
示例#3
0
 public LocationInvalidException(TargetException ex)
     : this(GetExceptionText (ex))
 {
 }
示例#4
0
 public LocationInvalidException(TargetException ex)
     : this(GetExceptionText(ex))
 {
 }