상속: 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))
 {
 }