Tds v1.1.6 Tds.Error exception View Source

Defines the Tds.Error struct.

The struct has two fields:

  • :message: expected to be a string
  • :mssql: expected to be a keyword list with the fields line_number, number and msg_text

Usage

iex> raise Tds.Error
** (Tds.Error) An error occured.

iex> raise Tds.Error, "some error"
** (Tds.Error) some error

iex> raise Tds.Error, line_number: 10, number: 8, msg_text: "some error"
** (Tds.Error) Line 10 (8): some error

Link to this section Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Link to this section Functions

Callback implementation for Exception.exception/1.

Link to this function message(exception) View Source
message(%Tds.Error{__exception__: term(), message: term(), mssql: term()}) :: String.t()

Callback implementation for Exception.message/1.