Package opendap.dap
Class BadSemanticsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- opendap.dap.DAP2Exception
-
- opendap.dap.DDSException
-
- opendap.dap.BadSemanticsException
-
- All Implemented Interfaces:
Serializable
public class BadSemanticsException extends DDSException
Thrown byBaseType
when thecheckSemantics
method is called and the variable is not valid (the name is null or some other semantic violation).- See Also:
BaseType
, Serialized Form
-
-
Field Summary
-
Fields inherited from class opendap.dap.DAP2Exception
CANNOT_READ_FILE, JAVA_PROGRAM, MALFORMED_EXPR, NO_AUTHORIZATION, NO_PROGRAM, NO_SUCH_FILE, NO_SUCH_VARIABLE, TCL_PROGRAM, UNDEFINED_ERROR, UNDEFINED_PROG_TYPE, UNKNOWN_ERROR
-
-
Constructor Summary
Constructors Constructor Description BadSemanticsException(int err, String s)
Construct aBadSemanticsException
with the specified message and OPeNDAP error code see (DAP2Exception
).BadSemanticsException(String s)
Construct aBadSemanticsException
with the specified detail message.
-
Method Summary
-
Methods inherited from class opendap.dap.DAP2Exception
getErrorCode, getErrorMessage, getMessage, getProgramSource, getProgramType, parse, print, print, setErrorCode, setErrorMessage, setProgramSource, setProgramType
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BadSemanticsException
public BadSemanticsException(String s)
Construct aBadSemanticsException
with the specified detail message.- Parameters:
s
- the detail message.
-
BadSemanticsException
public BadSemanticsException(int err, String s)
Construct aBadSemanticsException
with the specified message and OPeNDAP error code see (DAP2Exception
).- Parameters:
err
- the OPeNDAP error code.s
- the detail message.
-
-