pt.digitalis.dif.exception
Interface IContextException

All Known Implementing Classes:
AlreadyDeletedException, AnnotationMisuseException, AuthenticationManagerException, AuthorizationManagerException, BusinessFlowException, ContentItemNotFoundException, ContentItemWithDuplicateNameAndParentNodeException, ContentManagerException, ControllerException, DIFCodeGenerationException, DIFException, DocumentRepositoryException, IdentityManagerException, IllegalAnnotationUsage, IllegalFileUploadException, IncompatiblePrimaryAnnotationsException, InternalFrameworkException, InvalidNameException, InvalidParentNodeException, InvalidPathException, LicenseViolationException, MaximumDocumentSizeException, NoAccessException, NodeNotFoundException, NodeWithDuplicatePathException, NodeWithNodesException, ParameterException, SessionTimeoutException, UnauthorizedDocumentAccess, UserHasNoAccessToStage

public interface IContextException

Defines the behavior associated with an exception with context.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
, Pedro Viegas pviegas@digitalis.pt
Created on:
2007/11/27

Method Summary
 void addToExceptionContext(String key, Object value)
          Adds a new element to the exception context.
 Map<String,Object> getExceptionContext()
          Returns the exception context.
 String getRenderedExceptionContext()
          Renders the exception context.
 void setExceptionContext(Map<String,Object> exceptionContext)
          Sets the exception context.
 

Method Detail

addToExceptionContext

void addToExceptionContext(String key,
                           Object value)
Adds a new element to the exception context.

Parameters:
key - the element's key
value - the element's value

setExceptionContext

void setExceptionContext(Map<String,Object> exceptionContext)
Sets the exception context.

Parameters:
exceptionContext - a pre-built exception context

getExceptionContext

Map<String,Object> getExceptionContext()
Returns the exception context.

Returns:
the exception context

getRenderedExceptionContext

String getRenderedExceptionContext()
Renders the exception context.

Returns:
a String with the rendered context.


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.