|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GeometryViz3D.Model
{
public class G3DException : Exception
{
}
public class G3DDuplicateIDException : G3DException
{
string m_id;
public G3DDuplicateIDException(string id)
{
m_id = id;
}
public override string Message
{
get
{
return string.Format("The ID {0} is already used.", m_id);
}
}
}
public class G3DPointNotExistException : G3DException
{
string m_id;
public G3DPointNotExistException(string id)
{
m_id = id;
}
public override string Message
{
get
{
return string.Format("The point {0} does not exist.", m_id);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
He is a Software Engineer at Rockwell Automation Asia Pacific Business Center, working on RSLogix 5000. Prior to joining Rockwell Automation, he had worked for Sybase for 8 years and was the original architect of the PowerBuilder Native Interface and the PowerBuilder .NET Compiler that can compile PowerBuilder applications to .NET Windows Forms or Web Forms applications. The programming languages he has used or is using intensively include C#, C++, C and 8086 assembly.
Wu XueSong's Blog