Mssqlex v0.0.2 Mssqlex.Error exception

Defines an error returned from the ODBC adapter.

  • message is the full message returned by ODBC
  • odbc_code is an atom representing the returned SQLSTATE or the string representation of the code if it cannot be translated.

Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Types

t()
t() :: %Mssqlex.Error{__exception__: term, message: binary, odbc_code: atom | binary}

Functions

exception(msg)
exception(String.t) :: Exception.t
exception(Keyword.t) :: Exception.t
exception(binary) :: t

Callback implementation for Exception.exception/1.

message(exception)
message(Exception.t) :: String.t

Callback implementation for Exception.message/1.