logo
logo
  • Class ValidationFailure

    Describes a validation failure.

    Inheritance
    System.Object
    ValidationFailure
    Namespace: Stylelabs.M.Sdk.Exceptions
    Assembly: Stylelabs.M.Sdk.dll
    Syntax
    public class ValidationFailure : object

    Constructors

    ValidationFailure(String, String)

    Initializes a new instance of the ValidationFailure class.

    Declaration
    public ValidationFailure(string message, string source)
    Parameters
    Type Name Description
    System.String message

    A description of why the item is invalid.

    System.String source

    The item that is invalid.

    Properties

    Message

    Gets a description of why the item is invalid.

    Declaration
    public string Message { get; }
    Property Value
    Type Description
    System.String

    Source

    Gets the item that is invalid, e.g. a property or relation.

    Declaration
    public string Source { get; }
    Property Value
    Type Description
    System.String

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Can we improve this article ? Provide feedback