ffbc.Responseglobal virtual with sharing class Response This class provides error handling functionality for Billing Central services. Responses from Billing Central services extend this class to expose extra service-specific information. You aren't expected to produce extensions of this class. This class is marked as serializable and deserializable to work around an issue in enforcing JsonAccess for Visualforce remoting requests. Warning: Do not rely on any behavior available via serializing as or deserializing from JSON that is not part of the global API because it might be subject to change. Methods
getErrorsglobal Map<Id, List<String>> getErrors() This method returns errors that are generated in the response. Return ValueA Map containing a list of the errors generated for each record ID. getWarningsglobal virtual Map<Id, List<String>> getWarnings() This method returns warnings that are generated in the response. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method. Return ValueA list containing the warnings getStringErrorsglobal List<String> getStringErrors() This method returns errors that are generated in the response. Return ValueA list containing the errors generated for each record ID. getStringWarningsglobal virtual List<String> getStringWarnings() This method returns warnings that are generated in the response. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method. Return ValueA list containing the warnings generated for each record ID. hasErrorsglobal Boolean hasErrors() Checks whether any errors were generated in the response. Return ValueTrue or false depending on whether any errors were generated. hasErrorsglobal Boolean hasErrors(Id objectId) This method checks whether the response for a specific record generated any errors. Input Parameters
Return ValueTrue or false depending on whether any errors were generated. hasWarningsglobal virtual Boolean hasWarnings() Checks whether any warnings were generated in the response. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method. Return ValueTrue or false depending on whether any warnings were generated. hasWarningsglobal virtual Boolean hasWarnings(Id objectId) This method checks whether the response for a specific record generated any warnings. This method is virtual to support upgrades from older versions of Billing Central. You aren't expected to override this method. Input Parameters
Return ValueTrue or false depending on whether any warnings were generated. |