Billing Central Apex API Developer Reference

ffbc.Response

global virtual with sharing class Response

This class provides error handling functionality for Billing Central services.

Methods

hasErrors

global Boolean hasErrors()

Checks whether any errors were generated in the response.

Return Value

True or false depending on whether any errors were generated.

hasErrors

global Boolean hasErrors(Id objectId)

This method checks whether the response for a specific record generated any errors.

Input Parameters

Name Type Description
objectId Id Id of the record for which to check for errors.

Return Value

True or false depending on whether any errors were generated.

getErrors

global Map<Id, List<String>> getErrors()

This method returns errors that are generated in the response.

Return Value

A Map containing a list of the errors generated for each record Id.

getStringErrors

global List<String> getStringErrors()

This method returns errors that are generated in the response.

Return Value

A list containing the errors generated for each record Id.