Class ExtractFromException


  • public class ExtractFromException
    extends java.lang.Object
    Simple util to extract the resource id from an exception message.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String extractMessage​(java.lang.String exceptionMessage)
      Get the resource ID which for now is always the last "word" in the exception.
      static java.lang.String extractUUID​(java.lang.String exceptionMessage)
      Get the resource ID which for now is always the last "word" in the exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtractFromException

        public ExtractFromException()
    • Method Detail

      • extractUUID

        public static java.lang.String extractUUID​(java.lang.String exceptionMessage)
        Get the resource ID which for now is always the last "word" in the exception. Its no need to parse this as a Number as its REST.
        Parameters:
        exceptionMessage - from the exception caster
        Returns:
        a formatted version.
      • extractMessage

        public static java.lang.String extractMessage​(java.lang.String exceptionMessage)
        Get the resource ID which for now is always the last "word" in the exception. Its no need to parse this as a Number as its REST.
        Parameters:
        exceptionMessage - from the exception caster
        Returns:
        a formatted version.