AuthenticationService  v0.2.0
Public Member Functions | Properties | List of all members
Joutsen.AuthenticationService.ErrorMessage Class Reference

A model class providing validation error messages. More...

Public Member Functions

 ErrorMessage (string message, string parameterName)
 Creates a new instance with a message. More...
 
 ErrorMessage (string message, String parameterName, params object[] formatParams)
 Creates a new instance with a message that needs formatting. More...
 
 ErrorMessage (string message, String parameterName, Map< string, object > formatParams)
 Creates a new instance with a message that needs formatting. More...
 
 ErrorMessage (ModelError error, String parameterName)
 Creates a new instance with out of a model error instance. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Properties

String Message [get, set]
 The error message. More...
 

Detailed Description

A model class providing validation error messages.

Since
0.2.0

Constructor & Destructor Documentation

◆ ErrorMessage() [1/4]

Joutsen.AuthenticationService.ErrorMessage.ErrorMessage ( string  message,
string  parameterName 
)

Creates a new instance with a message.

Parameters
messagethe error message
parameterNamethe name of the parameter that failed parsing

◆ ErrorMessage() [2/4]

Joutsen.AuthenticationService.ErrorMessage.ErrorMessage ( string  message,
String  parameterName,
params object []  formatParams 
)

Creates a new instance with a message that needs formatting.

Parameters
messagethe error message
parameterNamethe name of the parameter that failed parsing
formatParamsthe parameters inserted into the message based on position

◆ ErrorMessage() [3/4]

Joutsen.AuthenticationService.ErrorMessage.ErrorMessage ( string  message,
String  parameterName,
Map< string, object >  formatParams 
)

Creates a new instance with a message that needs formatting.

Parameters
messagethe error message
parameterNamethe name of the parameter that failed parsing
formatParamsthe parameters inserted into the message based on their name

◆ ErrorMessage() [4/4]

Joutsen.AuthenticationService.ErrorMessage.ErrorMessage ( ModelError  error,
String  parameterName 
)

Creates a new instance with out of a model error instance.

Parameters
errorthe model error
parameterNamethe name of the parameter that failed parsing

Member Function Documentation

◆ Equals()

override bool Joutsen.AuthenticationService.ErrorMessage.Equals ( object  obj)

◆ GetHashCode()

override int Joutsen.AuthenticationService.ErrorMessage.GetHashCode ( )

Property Documentation

◆ Message

String Joutsen.AuthenticationService.ErrorMessage.Message
getset

The error message.