Class InvalidGeodeticParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opengis.util.FactoryException
org.apache.sis.referencing.factory.InvalidGeodeticParameterException
- All Implemented Interfaces:
Serializable
public class InvalidGeodeticParameterException
extends org.opengis.util.FactoryException
Thrown when a factory
createFoo(…)
method is given invalid parameters.
This exception may be thrown by factories that create an object from geodetic parameters
like semi-major or semi-minor axis length, latitude of natural origin, etc.
The cause may be a parameter having an illegal value, or a mandatory parameter which has not been specified.
Note:
this exception is not for invalid authority codes. For such cases, see
NoSuchAuthorityCodeException
instead.- Since:
- 0.7
- Version:
- 0.7
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Serial number for inter-operability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an exception with no detail message.InvalidGeodeticParameterException
(String message) Construct an exception with the specified detail message.InvalidGeodeticParameterException
(String message, Throwable cause) Construct an exception with the specified detail message and cause.Construct an exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
-
Constructor Details
-
InvalidGeodeticParameterException
public InvalidGeodeticParameterException()Construct an exception with no detail message. -
InvalidGeodeticParameterException
Construct an exception with the specified detail message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-
InvalidGeodeticParameterException
InvalidGeodeticParameterException(Throwable cause) Construct an exception with the specified cause.This constructor is not public because its behavior is slightly different than the default JDK behavior: the message is set to the throwable message instead of to
throwable.toString()
.- Parameters:
cause
- the cause for this exception, saved for later retrieval by theThrowable.getCause()
method.
-
InvalidGeodeticParameterException
Construct an exception with the specified detail message and cause.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause for this exception, saved for later retrieval by theThrowable.getCause()
method.
-