Inheritance: System.Exception, ISerializable
Exemple #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);
 }
Exemple #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));
     }
 }
Exemple #3
0
 public LocationInvalidException(TargetException ex)
     : this(GetExceptionText (ex))
 {
 }
Exemple #4
0
 public LocationInvalidException(TargetException ex)
     : this(GetExceptionText(ex))
 {
 }