org.squashtest.csp.core.bugtracker.internal.mantis
Class MantisExceptionConverter

java.lang.Object
  extended by org.squashtest.csp.core.bugtracker.internal.mantis.MantisExceptionConverter

@Component(value="squashtest.core.bugtracker.BugTrackerExceptionConverter")
public class MantisExceptionConverter
extends Object

that class will convert a Mantis RemoteException to a BugTrackerRemoteException. Its goal is to : - provide a more detailed message for an user, - internationalize it,

Author:
bsiri

Constructor Summary
MantisExceptionConverter()
           
 
Method Summary
 org.squashtest.csp.core.bugtracker.core.BugTrackerRemoteException convertException(RemoteException remoteException)
           
 void init()
           
 org.squashtest.csp.core.bugtracker.core.ProjectNotFoundException makeProjectNotFound(String projName)
           
 org.squashtest.csp.core.bugtracker.core.BugTrackerRemoteException newIssueNotFoundException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MantisExceptionConverter

public MantisExceptionConverter()
Method Detail

convertException

public org.squashtest.csp.core.bugtracker.core.BugTrackerRemoteException convertException(RemoteException remoteException)

makeProjectNotFound

public org.squashtest.csp.core.bugtracker.core.ProjectNotFoundException makeProjectNotFound(String projName)

init

@PostConstruct
public void init()

newIssueNotFoundException

public org.squashtest.csp.core.bugtracker.core.BugTrackerRemoteException newIssueNotFoundException()


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.