Show / Hide Table of Contents

Interface IError​Builder

Represents an interface for building an error message

Namespace: Innovator.​Client
Assembly: Innovator.Client.dll
Syntax
public interface IErrorBuilder

Methods

| Improve this Doc View Source

ErrorContext(IReadOnlyItem)

Specify the context of the error message

Declaration
IErrorBuilder ErrorContext(IReadOnlyItem item)
Parameters
Type Name Description
IRead​Only​Item item

Item which the error is about

Returns
Type Description
IError​Builder

The same IError​Builder instance for chaining additional calls

| Improve this Doc View Source

ErrorMsg(String)

Add an error message

Declaration
IErrorBuilder ErrorMsg(string message)
Parameters
Type Name Description
System.​String message

Message to return to the user

Returns
Type Description
IError​Builder

The same IError​Builder instance for chaining additional calls

| Improve this Doc View Source

ErrorMsg(String, IEnumerable<String>)

Add an error message specifying the properties the message pertains to

Declaration
IErrorBuilder ErrorMsg(string message, IEnumerable<string> properties)
Parameters
Type Name Description
System.​String message

Message to return to the user

System.​Collections.​Generic.​IEnumerable<System.​String> properties

Name of the properties (e.g. created_by_id) to which the error pertains

Returns
Type Description
IError​Builder

The same IError​Builder instance for chaining additional calls

| Improve this Doc View Source

ErrorMsg(String, String[])

Add an error message specifying the properties the message pertains to

Declaration
IErrorBuilder ErrorMsg(string message, params string[] properties)
Parameters
Type Name Description
System.​String message

Message to return to the user

System.​String[] properties

Name of the properties (e.g. created_by_id) to which the error pertains

Returns
Type Description
IError​Builder

The same IError​Builder instance for chaining additional calls

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • ErrorContext(IReadOnlyItem)
    • ErrorMsg(String)
    • ErrorMsg(String, IEnumerable<String>)
    • ErrorMsg(String, String[])
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX