Show / Hide Table of Contents

Class ErrorFactory

A factory class to help with building Error objects.

Inheritance
System.Object
ErrorFactory
Namespace: Ellucian.Ethos.Integration.Client.Errors
Assembly: Ellucian.Ethos.Integration.dll
Syntax
public class ErrorFactory : object

Methods

CreateErrorFromJson(String)

Create an Error object using a JSON string. This will attempt to parse the given string into an Error object.

Declaration
public static EthosError CreateErrorFromJson(string json)
Parameters
Type Name Description
System.String json

The JSON string representing the error.

Returns
Type Description
EthosError

An Error object created from the given JSON string.

CreateErrorListFromJson(String)

Create an Error array using a JSON string. This will attempt to parse the given string into an Error array.

Declaration
public static List<EthosError> CreateErrorListFromJson(string json)
Parameters
Type Name Description
System.String json

The JSON string representing the error.

Returns
Type Description
List<EthosError>

A List of Errors array created from the given JSON string.

In This Article
Back to top Generated by DocFX