Codeunit 2362 Rest Client Exception Builder

System Application, System.RestClient

Source AL, 51 lines

src/System Application/App/Rest Client/src/ExceptionHandling/RestClientExceptionBuilder.Codeunit.allines 7 to 22 of 51, Copyright (c) Microsoft Corporation. MIT

codeunit 2362 "Rest Client Exception Builder"{    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    /// <summary>    /// Creates an exception with the specified error code and message. The exception is collectible if the errors are currently being collected.    /// </summary>    /// <param name="RestClientException">The error code for the exception.</param>    /// <param name="ErrorMessage">The message for the exception.</param>    /// <returns>The exception with the specified error code and message.</returns>    procedure CreateException(RestClientException: Enum "Rest Client Exception"; ErrorMessage: Text) Exception: ErrorInfo    begin        Exception := CreateException(RestClientException, ErrorMessage, IsCollectingErrors());    end;

All 51 lines

Public procedures 3 in 29

CreateException(RestClientException: Enum "Rest Client Exception"; ErrorMessage: Text): ErrorInfonew in 26
CreateException(RestClientException: Enum "Rest Client Exception"; ErrorMessage: Text; Collectible: Boolean): ErrorInfonew in 26
GetRestClientException(ErrInfo: ErrorInfo): Enum "Rest Client Exception"new in 26