25 lines
492 B
25 lines
492 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Common.Exceptions
|
|
{
|
|
public class CannotConvertException : Exception
|
|
{
|
|
public CannotConvertException(string source)
|
|
{
|
|
this.source = source;
|
|
}
|
|
|
|
string source = "";
|
|
|
|
public override string Message
|
|
{
|
|
get
|
|
{
|
|
return "无法转换给定的字符!" + source;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|