PSA Core


global inherited sharing class ControllerUtil

Utility class for controllers

This class contains deprecated items.



global static void addPageError(String err)

Convenience method to add a page error.


global static void logException(Exception e)

Common routine for logging a page exception that occurs in a page controller. This method logs the message to Apex debug and adds a VF page error.


The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.



Deprecated: in favor of the PSA ControllerUtil implementation kept to avoid breaking changes.

global static PageReference getReturnUrl(String fallbackUrl)

Returns the url from the retUrl URL parameter from the page's URL or the value of the fallbackUrl method parameter if no retUrl parameter was specifiied.

© Copyright 2009–2022, inc. All rights reserved. Various trademarks held by their respective owners.