1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.projection;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Exception thrown when a projection cannot be constructed due to invalid input
|
---|
6 | * parameters.
|
---|
7 | *
|
---|
8 | * Used mainly in {@link CustomProjection}, where a parameter string is parsed
|
---|
9 | * and converted to a projection.
|
---|
10 | */
|
---|
11 | public class ProjectionConfigurationException extends Exception {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Constructs a new {@code ProjectionConfigurationException}.
|
---|
15 | * @param message the detail message (which is saved for later retrieval
|
---|
16 | * by the {@link #getMessage()} method).
|
---|
17 | * @param cause the cause (which is saved for later retrieval by the
|
---|
18 | * {@link #getCause()} method). (A <code>null</code> value is
|
---|
19 | * permitted, and indicates that the cause is nonexistent or unknown.)
|
---|
20 | */
|
---|
21 | public ProjectionConfigurationException(String message, Throwable cause) {
|
---|
22 | super(message, cause);
|
---|
23 | }
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Constructs a new {@code ProjectionConfigurationException}.
|
---|
27 | * @param message the detail message. The detail message is saved for
|
---|
28 | * later retrieval by the {@link #getMessage()} method.
|
---|
29 | */
|
---|
30 | public ProjectionConfigurationException(String message) {
|
---|
31 | super(message);
|
---|
32 | }
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * Constructs a new {@code ProjectionConfigurationException}.
|
---|
36 | * @param cause the cause (which is saved for later retrieval by the
|
---|
37 | * {@link #getCause()} method). (A <code>null</code> value is
|
---|
38 | * permitted, and indicates that the cause is nonexistent or unknown.)
|
---|
39 | */
|
---|
40 | public ProjectionConfigurationException(Throwable cause) {
|
---|
41 | super(cause);
|
---|
42 | }
|
---|
43 | }
|
---|