Package no.nsd.qddt.utils
Class ExtractFromException
- java.lang.Object
-
- no.nsd.qddt.utils.ExtractFromException
-
public class ExtractFromException extends java.lang.Object
Simple util to extract the resource id from an exception message.
-
-
Constructor Summary
Constructors Constructor Description ExtractFromException()
-
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.
-
-
-
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 aNumber
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 aNumber
as its REST.- Parameters:
exceptionMessage
- from the exception caster- Returns:
- a formatted version.
-
-