1 /* Copyright (c) 2009 Peter Troshin
\r
3 * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0
\r
5 * This library is free software; you can redistribute it and/or modify it under the terms of the
\r
6 * Apache License version 2 as published by the Apache Software Foundation
\r
8 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
\r
9 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache
\r
10 * License for more details.
\r
12 * A copy of the license is in apache_license.txt. It is also available here:
\r
13 * @see: http://www.apache.org/licenses/LICENSE-2.0.txt
\r
15 * Any republication or derived work distributed in source code form
\r
16 * must include this copyright and license notice.
\r
19 package compbio.metadata;
\r
22 * WrongParameterException is thrown wherever the {@link RunnerConfig} object
\r
23 * does not match the actual runnable or then attempting to set the value of
\r
24 * {@link Argument} to invalid value.
\r
29 * @version 1.0 October 2009
\r
31 public class WrongParameterException extends Exception {
\r
34 * Default stable serial for serialization
\r
36 private static final long serialVersionUID = -547775417557345769L;
\r
38 public WrongParameterException(Option<?> option) {
\r
39 this("Wrong option is: " + option.toString());
\r
42 public WrongParameterException(String message) {
\r
46 public WrongParameterException(Throwable cause) {
\r
50 public WrongParameterException(String message, Throwable cause) {
\r
51 super(message, cause);
\r