using System;
using System.Collections.Generic;
using System.Text;
namespace ScriptNET.Runtime
{
#region Exceptions
///
/// Represents errors that occur during script execution.
///
public class ScriptException : Exception
{
public ScriptException(string Message)
: base(Message)
{
}
}
///
/// Syntax error exception
///
public class ScriptSyntaxErrorException : ScriptException
{
public ScriptSyntaxErrorException(string Message)
: base(Message)
{
}
}
///
/// Exception being thrown when given id of variable, function, namespace, etc was not found
///
public class ScriptIdNotFoundException : ScriptException
{
public ScriptIdNotFoundException(string Message)
: base(Message)
{
}
}
///
/// Represents errors that occur when method was not found
///
public class ScriptMethodNotFoundException : ScriptException
{
public ScriptMethodNotFoundException(string Message)
: base(Message)
{
}
}
///
/// Represents errors that occur during run-time verification of the script.
///
public class ScriptVerificationException : ScriptException
{
public ScriptVerificationException(string Message)
: base(Message)
{
}
}
///
/// Represents errors that occur during event processing.
///
public class ScriptEventException : ScriptException
{
public ScriptEventException(string Message)
: base(Message)
{
}
}
#endregion
}