com.wewebu.ow.server.ecmimpl.cmis
Class OwCMISExceptionCatcher

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.OwCMISExceptionCatcher

public class OwCMISExceptionCatcher
extends Object

CmisException catching block helper.
Creates specific fault type exceptions and log-statements.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Constructor Summary
OwCMISExceptionCatcher(org.oasis_open.docs.ns.cmis.ws._200908.CmisException cmisException_p)
          Constructor
OwCMISExceptionCatcher(org.oasis_open.docs.ns.cmis.ws._200908.CmisException cmisException_p, Locale locale_p)
          Constructor
 
Method Summary
 String getLocalizedFaultTypeMessage()
           
 String getLogMessage()
           
 com.wewebu.ow.server.exceptions.OwException toOwException()
           
 com.wewebu.ow.server.exceptions.OwException toOwException(com.wewebu.ow.server.util.OwString message_p)
           
 com.wewebu.ow.server.exceptions.OwException toOwException(String message_p)
           
 com.wewebu.ow.server.exceptions.OwException toOwException(String message_p, boolean addCMISFaultTypeMessage_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISExceptionCatcher

public OwCMISExceptionCatcher(org.oasis_open.docs.ns.cmis.ws._200908.CmisException cmisException_p)
Constructor

Parameters:
cmisException_p -

OwCMISExceptionCatcher

public OwCMISExceptionCatcher(org.oasis_open.docs.ns.cmis.ws._200908.CmisException cmisException_p,
                              Locale locale_p)
Constructor

Parameters:
cmisException_p -
locale_p - current locale used in fault type exception message localization
Method Detail

getLogMessage

public String getLogMessage()
Returns:
fault type specific log message (fault-type message and fault message)

getLocalizedFaultTypeMessage

public String getLocalizedFaultTypeMessage()
Returns:
the localized fault type message

toOwException

public com.wewebu.ow.server.exceptions.OwException toOwException()
Returns:
an OwException wrapper of the current CmisException

toOwException

public com.wewebu.ow.server.exceptions.OwException toOwException(String message_p)
Parameters:
message_p -
Returns:
an OwException wrapper of the current CmisException with the given message

toOwException

public com.wewebu.ow.server.exceptions.OwException toOwException(String message_p,
                                                                 boolean addCMISFaultTypeMessage_p)
Parameters:
message_p -
addCMISFaultTypeMessage_p - if true the localized fault type message is added to the given message in the generated exception object
Returns:
an OwException wrapper of the current CmisException with the given message

toOwException

public com.wewebu.ow.server.exceptions.OwException toOwException(com.wewebu.ow.server.util.OwString message_p)


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.