Table of Contents

Class TigerQueryException

Namespace
ItTiger.TigerQuery
Assembly
ItTiger.TigerQuery.dll
Represents a TigerQuery or sqlcmd structural parsing failure.
[Serializable]
public class TigerQueryException : Exception, ISerializable
Inheritance
TigerQueryException
Implements
Derived
Inherited Members

Remarks

This exception does not represent SQL Server T-SQL syntax, compilation, permission, connection, or runtime errors. Source coordinates are nullable because not every parser failure currently supplies them. OutputRoutingException derives from this type, so a caller that needs to distinguish an output failure from a structural parse failure must test for the derived type first.

Constructors

TigerQueryException()

Initializes an exception without a message or source position.
public TigerQueryException()

TigerQueryException(string)

Initializes an exception with a message.
public TigerQueryException(string message)

Parameters

message string
The error message.

TigerQueryException(string, Exception)

Initializes an exception with a message and underlying exception.
public TigerQueryException(string message, Exception inner)

Parameters

message string
The error message.
inner Exception
The exception that caused this failure.

TigerQueryException(string, int?, int?)

Initializes an exception with optional source coordinates.
public TigerQueryException(string message, int? line, int? column)

Parameters

message string
The error message without a location prefix.
line int?
The one-based source line, or null.
column int?
The one-based source column, or null.

Remarks

When either coordinate is present, the formatted Message is prefixed with both line and column; a missing coordinate is displayed as zero.

Properties

Column

Gets the one-based source column, or null when unavailable.
public int? Column { get; }

Property Value

int?

Line

Gets the one-based source line, or null when unavailable.
public int? Line { get; }

Property Value

int?