Open sandboxFocus

Method GetErrorMessage

GetErrorMessage()

Gets the unformatted error message as defined by the instance.

Declaration
[Obsolete("Use ContractExceptionFactory and ContractLocalizedTextProvider to generate error messages.")]
protected virtual string GetErrorMessage()
Returns
Type Description
string

The unformatted error message.

Remarks

See remarks on LocationContractAttribute for information about message parameters.

The use of this method can be overridden by setting the ErrorMessage property to a non-null value.