Table of Contents

Class Refuse

Namespace
Rinku
Assembly
Rinku.dll

Provides the standard failures used by custom Rinku components.

public static class Refuse
Inheritance
Refuse
Inherited Members

Methods

Connected<T>(T?)

Returns connection, or raises NoConnection.

public static T Connected<T>(T? connection) where T : class

Parameters

connection T

Returns

T

Type Parameters

T

NoConnection()

Throws when a command has no connection.

[DoesNotReturn]
public static void NoConnection()

NoParser(Type, ColumnInfo[])

Throws when the returned columns cannot create targetType.

[DoesNotReturn]
public static void NoParser(Type targetType, ColumnInfo[] cols)

Parameters

targetType Type
cols ColumnInfo[]

NoRows()

Throws when a result type requires a row and none was returned.

[DoesNotReturn]
public static void NoRows()