Java tutorial
/***************************************************************************** * Copyright (c) 2016 Diamond Light Source Ltd. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Torkild U. Resheim - initial API and implementation ****************************************************************************/ package org.dawnsci.marketplace; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.http.HttpStatus; @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public class InternalErrorException extends RuntimeException { private static final long serialVersionUID = -5052139262842351715L; public InternalErrorException(String message) { super(message); } public InternalErrorException(Throwable throwable) { super(throwable); } }