net.sf.itcb.common.client.exceptions.ClientItcbExceptionMappingErrors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of itcb-common-client Show documentation
Show all versions of itcb-common-client Show documentation
This module is the common client module for calling webservices (server module). It defines all generic treatements that allows calling webservices
package net.sf.itcb.common.client.exceptions;
import net.sf.itcb.common.business.exceptions.ExceptionMappingErrors;
/**
* All problems that can occurs in client side when we call a webservice
*
* @author Pierre Le Roux
*/
public enum ClientItcbExceptionMappingErrors implements ExceptionMappingErrors{
COMMON_CLIENT_NOT_CORRECT_INTERFACE ("The service interfaces must use only one parameter (Request) and must declare a return type (Response)"),
COMMON_CLIENT_NOT_SET_SECUREMENT_PROVIDER ("Since you declare a SecurityInterceptor, you have to set the securementCredentialsProvider property"),
COMMON_CLIENT_VALIDATION_ERROR ("The message sent to the webservice is not valid"),
COMMON_CLIENT_BUSINESS_TRANSFORMATION_ERROR ("Transformation from soap fault to BusinessItcbException didn't work"),
COMMON_CLIENT_TECHNICAL_ERROR ("A technical error occured when the client have called the webservice");
private String message;
ClientItcbExceptionMappingErrors(String msg) {
this.message=msg;
}
public String getMessage() {
return message;
}
public String getMessageKey() {
return this.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy