Package com.helger.photon.core.interror
Class InternalErrorHandler
- java.lang.Object
-
- com.helger.photon.core.interror.InternalErrorHandler
-
@ThreadSafe public final class InternalErrorHandler extends Object
A handler for internal errors- Author:
- Philip Helger
- See Also:
InternalErrorBuilder
,InternalErrorEmailSettings
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ENABLE_FULL_THREAD_DUMPS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createNewErrorID()
Create a new unique error ID.static String
createNewInternalErrorID()
Create a new unique internal error ID.static InternalErrorMetadata
fillInternalErrorMetaData(com.helger.web.scope.IRequestWebScopeWithoutResponse aProvidedRequestScope, String sErrorID, Map<String,String> aCustomData)
-
-
-
Field Detail
-
DEFAULT_ENABLE_FULL_THREAD_DUMPS
public static final boolean DEFAULT_ENABLE_FULL_THREAD_DUMPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createNewErrorID
@Nonnull @Nonempty public static String createNewErrorID()
Create a new unique error ID.- Returns:
- This is either a new persistent int ID or a non-persistent ID
together with the timestamp. Neither
null
nor empty.
-
createNewInternalErrorID
@Nonnull @Nonempty public static String createNewInternalErrorID()
Create a new unique internal error ID.- Returns:
- The created error ID. Neither
null
nor empty.
-
-