var __IrthErrorVersion=1;

///<Documentation>
///<Class name="IrthError">
///<Constructor>
///<summary>Error constructor</summary>
///<param name="originator" type="string" required="false">
///     The name of the object throwing the error.
///</param>
///<param name="functionName" type="string" required="false">
///     The name of the function within the object that is throwing the error.
///</param>
///<param name="description" type="string" required="false">
///     A brief description of the error.
///</param>
function IrthError(originator,functionName,description)
{
    this.Originator=obj;
    this.Function=func;
    this.Description=desc;
}
///</Constructor>

///<Methods>
///<Method name="Throw">
///<summary>Throws a custom WebControl error</summary>
///<returns>HTML object</returns>
IrthError.prototype.Throw=function()
{
    throw new Error("Irth Error\nObject: "+this.Originator+"\nFunction: "+this.Function+"\nDescription: "+this.Description);
} 
///</Method>
///</Methods>
///</Class>
///</Documentation>
