Package com.cedarsolutions.exception

Examples of com.cedarsolutions.exception.ServiceException


*/
public class ServiceExceptionUtils {

    /** Create a service exception, filling in exception context. */
    public static ServiceException createServiceException() {
        ServiceException exception = new ServiceException();
        return ExceptionUtils.addExceptionContext(exception, 1);
    }
View Full Code Here


        return ExceptionUtils.addExceptionContext(exception, 1);
    }

    /** Create a service exception, filling in exception context. */
    public static ServiceException createServiceException(String message) {
        ServiceException exception = new ServiceException(message);
        return ExceptionUtils.addExceptionContext(exception, 1);
    }
View Full Code Here

        return ExceptionUtils.addExceptionContext(exception, 1);
    }

    /** Create a service exception, filling in exception context. */
    public static ServiceException createServiceException(LocalizableMessage localizableMessage) {
        ServiceException exception = new ServiceException(localizableMessage);
        return ExceptionUtils.addExceptionContext(exception, 1);
    }
View Full Code Here

        return ExceptionUtils.addExceptionContext(exception, 1);
    }

    /** Create a service exception, filling in exception context. */
    public static ServiceException createServiceException(String message, Throwable cause) {
        ServiceException exception = new ServiceException(message, cause);
        return ExceptionUtils.addExceptionContext(exception, 1);
    }
View Full Code Here

        return ExceptionUtils.addExceptionContext(exception, 1);
    }

    /** Create a service exception, filling in exception context. */
    public static ServiceException createServiceException(LocalizableMessage localizableMessage, Throwable cause) {
        ServiceException exception = new ServiceException(localizableMessage, cause);
        return ExceptionUtils.addExceptionContext(exception, 1);
    }
View Full Code Here

    }

    /** Wrap any unexpected exception from an RPC method call in a ServiceException. */
    @Override
    protected void doUnexpectedFailure(Throwable exception) {
        throw new ServiceException("Unexpected failure in service call: " + exception.getMessage(), exception);
    }
View Full Code Here

TOP

Related Classes of com.cedarsolutions.exception.ServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.