Class FriendlyExceptionCreator

Object
FriendlyExceptionCreator

public class FriendlyExceptionCreator extends Object
Converts certain exceptions that occur from XML-Parsing into a friendly form to display to the user.
Author:
Owen Feehan
  • Method Details

    • maybeCreateUserFriendlyException

      public static Throwable maybeCreateUserFriendlyException(Throwable e)
      Possibly replaces an exception with a more user-friendly description
      Parameters:
      e - an exception that will be possibly replaced
      Returns:
      either the exception e, or an alternative more user-friendly description