public class AstException extends RuntimeException
getStatus
on this exception and comparing it with one of the
static final int
fields (constants) defined by this class,
it is possible to find out exactly what went wrong.
In a few cases an AstException may be thrown by parts of
the Java uk.ac.starlink.ast system not provided by the underlying AST
library - in this case the status will be equal to SAI__ERROR
.Modifier and Type | Field and Description |
---|---|
static int |
AST__3DFSET
Status constant for error "Supplied FrameSet does not contain any independent axes"
|
static int |
AST__ATGER
Status constant for error "attribute getting error"
|
static int |
AST__ATSER
Status constant for error "attribute setting error"
|
static int |
AST__ATTIN
Status constant for error "attribute value invalid"
|
static int |
AST__AXIIN
Status constant for error "axis index invalid"
|
static int |
AST__BADAT
Status constant for error "bad attribute name"
|
static int |
AST__BADBX
Status constant for error "zero-sized box given"
|
static int |
AST__BADCI
Status constant for error "bad coordinate index"
|
static int |
AST__BADCOL
Status constant for error "No such column exists in the table"
|
static int |
AST__BADFLG
Status constant for error "Incompatible flags for re-sampling or re-binning"
|
static int |
AST__BADIN
Status constant for error "bad input data"
|
static int |
AST__BADKEY
Status constant for error "Attempt made to add an entry to a locked KeyMap"
|
static int |
AST__BADNI
Status constant for error "bad number of input coordinates"
|
static int |
AST__BADNO
Status constant for error "bad number of output coordinates"
|
static int |
AST__BADNULL
Status constant for error "Bad null value for a FITS table column"
|
static int |
AST__BADOC
Status constant for error "Invalid parameters for offset sky coordinate system"
|
static int |
AST__BADPW
Status constant for error "PolyMap contains illegal power value"
|
static int |
AST__BADSIZ
Status constant for error "Invalid array size"
|
static int |
AST__BADSM
Status constant for error "ShiftMap contains no shift information"
|
static int |
AST__BADSUB
Status constant for error "Illegal syntax for string substitution template"
|
static int |
AST__BADTAB
Status constant for error "Error reading WCS from FITS binary table"
|
static int |
AST__BADTYP
Status constant for error "Bad data type"
|
static int |
AST__BADUN
Status constant for error "invalid units specification"
|
static int |
AST__BADWM
Status constant for error "WinMap contains no bounds information"
|
static int |
AST__BDBRK
Status constant for error "bad break index"
|
static int |
AST__BDFMT
Status constant for error "bad field specifier"
|
static int |
AST__BDFTS
Status constant for error "invalid FITS keyword value found"
|
static int |
AST__BDOBJ
Status constant for error "inappropriate Object supplied"
|
static int |
AST__BDPAR
Status constant for error "Bad value supplied for a public function parameter"
|
static int |
AST__BIGKEY
Status constant for error "Key string is too long"
|
static int |
AST__BIGTAB
Status constant for error "Table is too large"
|
static int |
AST__CLPAX
Status constant for error "wrong number of clipping axes"
|
static int |
AST__CNFLX
Status constant for error "cannot conserve flux whilst resampling an array of data"
|
static int |
AST__COMIN
Status constant for error "invalid comma in expression"
|
static int |
AST__CONIN
Status constant for error "invalid constant in expression"
|
static int |
AST__CORNG
Status constant for error "range of coordinates invalid"
|
static int |
AST__CVBRK
Status constant for error "too many breaks in a curve"
|
static int |
AST__DIMIN
Status constant for error "array dimensions invalid"
|
static int |
AST__DTERR
Status constant for error "date/time error"
|
static int |
AST__DUVAR
Status constant for error "duplicate variable name"
|
static int |
AST__ENDIN
Status constant for error "invalid use of astEnd"
|
static int |
AST__EOCHN
Status constant for error "end of input Channel encountered"
|
static int |
AST__EXPIN
Status constant for error "attempt to export Object pointer from level zero"
|
static int |
AST__FCRPT
Status constant for error "corrupted FitsChan supplied"
|
static int |
AST__FMTER
Status constant for error "error while formatting coordinate value"
|
static int |
AST__FRMIN
Status constant for error "Frame index invalid"
|
static int |
AST__FRSIN
Status constant for error "FrameSet invalid"
|
static int |
AST__FTCNV
Status constant for error "cannot convert FITS data value type"
|
static int |
AST__FUNDEF
Status constant for error "FITS keyword had undefined value"
|
static int |
AST__GBDIN
Status constant for error "grid bounds invalid"
|
static int |
AST__GRFER
Status constant for error "low level graphics error"
|
static int |
AST__ILOST
Status constant for error "FrameSet integrity lost"
|
static int |
AST__INCTS
Status constant for error "incompatible time scales"
|
static int |
AST__INHAN
Status constant for error "invalid Handle"
|
static int |
AST__INNCO
Status constant for error "incompatible numbers of coordinates"
|
static int |
AST__INNTF
Status constant for error "invalid number of transformation functions"
|
static int |
AST__INTER
Status constant for error "internal programming error"
|
static int |
AST__INTRD
Status constant for error "incompatible transformation directions"
|
static int |
AST__ISNAN
Status constant for error "A transformation generated one or more NaN values"
|
static int |
AST__ITFER
Status constant for error "error in IntraMap transformation function"
|
static int |
AST__ITFNI
Status constant for error "IntraMap transformation function name invalid"
|
static int |
AST__KYCIR
Status constant for error "circular dependency between KeyMaps"
|
static int |
AST__LCKERR
Status constant for error "Error locking or unlocking an AST Object"
|
static int |
AST__LDERR
Status constant for error "class loader error"
|
static int |
AST__LEVMAR
Status constant for error "Error in levmar Levenberg-Marquardt code"
|
static int |
AST__LUTII
Status constant for error "invalid lookup table increment"
|
static int |
AST__LUTIN
Status constant for error "invalid number of lookup table elements"
|
static int |
AST__MBBNF
Status constant for error "Mapping bounding box not found"
|
static int |
AST__MEMIN
Status constant for error "requested memory size invalid"
|
static int |
AST__MIOPA
Status constant for error "missing or invalid operand in expression"
|
static int |
AST__MIOPR
Status constant for error "missing or invalid operator in expression"
|
static int |
AST__MISVN
Status constant for error "missing variable name"
|
static int |
AST__MLPAR
Status constant for error "missing left parenthesis in expression"
|
static int |
AST__MPGER
Status constant for error "error getting a named value from a KeyMap"
|
static int |
AST__MPIND
Status constant for error "invalid integer index supplied for a KeyMap entry"
|
static int |
AST__MPKER
Status constant for error "requested key not found in KeyMap"
|
static int |
AST__MPPER
Status constant for error "error putting a named value into a KeyMap"
|
static int |
AST__MPVIN
Status constant for error "invalid integer index supplied for a KeyMap vector element"
|
static int |
AST__MRITF
Status constant for error "multiple registration of IntraMap transformation function"
|
static int |
AST__MRPAR
Status constant for error "missing right parenthesis in expression"
|
static int |
AST__MTR23
Status constant for error "not a 2d or 3d MatrixMap"
|
static int |
AST__MTRAX
Status constant for error "null rotation axis supplied"
|
static int |
AST__MTRML
Status constant for error "bad matrix shapes for multiplication"
|
static int |
AST__MTRMT
Status constant for error "null matrix supplied"
|
static int |
AST__NAXIN
Status constant for error "number of axes invalid"
|
static int |
AST__NCHIN
Status constant for error "number of characters invalid"
|
static int |
AST__NCOIN
Status constant for error "number of coordinates invalid"
|
static int |
AST__NCPIN
Status constant for error "number of coordinates per point invalid"
|
static int |
AST__NELIN
Status constant for error "number of array elements invalid"
|
static int |
AST__NGDIN
Status constant for error "number of grid dimensions invalid"
|
static int |
AST__NOCTS
Status constant for error "number of output coordinates too small"
|
static int |
AST__NODEF
Status constant for error "transformation not defined"
|
static int |
AST__NOFIT
Status constant for error "Fit failed"
|
static int |
AST__NOFTS
Status constant for error "required FITS keywords missing"
|
static int |
AST__NOMEM
Status constant for error "unable to allocate memory"
|
static int |
AST__NONIN
Status constant for error "no inside point found"
|
static int |
AST__NOPTS
Status constant for error "number of output points too small"
|
static int |
AST__NORHS
Status constant for error "missing right hand side in function"
|
static int |
AST__NORSF
Status constant for error "no rest frequency is defined"
|
static int |
AST__NOSOR
Status constant for error "no standard of rest is defined"
|
static int |
AST__NOTAB
Status constant for error "Cannot access FITS binary table"
|
static int |
AST__NOVAL
Status constant for error "attribute has no usable value"
|
static int |
AST__NOWRT
Status constant for error "attribute is read-only"
|
static int |
AST__NPTIN
Status constant for error "number of points invalid"
|
static int |
AST__OBJIN
Status constant for error "Object invalid"
|
static int |
AST__OCLUK
Status constant for error "Object class unknown"
|
static int |
AST__OLDCOL
Status constant for error "Column already exists with different properties"
|
static int |
AST__OPRIN
Status constant for error "operation specifier invalid"
|
static int |
AST__OPT
Status constant for error "invalid Plot option"
|
static int |
AST__PATIN
Status constant for error "positional accuracy tolerance invalid"
|
static int |
AST__PDSIN
Status constant for error "points data structure invalid"
|
static int |
AST__PLFMT
Status constant for error "no numerical labels can be produced"
|
static int |
AST__PRMIN
Status constant for error "permutation invalid"
|
static int |
AST__PTRIN
Status constant for error "pointer invalid"
|
static int |
AST__PTRNG
Status constant for error "range of points invalid"
|
static int |
AST__PXFRRM
Status constant for error "Attempt to delete original Plot3D base Frame"
|
static int |
AST__RDERR
Status constant for error "read error"
|
static int |
AST__REGCN
Status constant for error "region cannot be re-centred"
|
static int |
AST__REGIN
Status constant for error "invalid or corrupted Region structure supplied"
|
static int |
AST__REMIN
Status constant for error "invalid attempt to remove last Frame"
|
static int |
AST__SCSIN
Status constant for error "sky coordinate system invalid"
|
static int |
AST__SELIN
Status constant for error "axis selection invalid"
|
static int |
AST__SISIN
Status constant for error "sub-pixel interpolation scheme invalid"
|
static int |
AST__SLAIN
Status constant for error "bad SLALIB transformation type"
|
static int |
AST__SPCIN
Status constant for error "invalid SpecMap"
|
static int |
AST__SSPIN
Status constant for error "scale size in pixels invalid"
|
static int |
AST__STCIND
Status constant for error "invalid AstroCoords index"
|
static int |
AST__STCKEY
Status constant for error "cannot use supplied AstroCoords info"
|
static int |
AST__TIMIN
Status constant for error "invalid TimeMap"
|
static int |
AST__TRNND
Status constant for error "coordinate transformation not defined"
|
static int |
AST__TUNAM
Status constant for error "Unknown AST tuning parameter name supplied"
|
static int |
AST__UDVOF
Status constant for error "undefined variable or function in expression"
|
static int |
AST__UINER
Status constant for error "error in user-supplied sub-pixel interpolation function"
|
static int |
AST__UK1ER
Status constant for error "error in user-supplied 1-d sub-pixel interpolation kernel"
|
static int |
AST__UNFER
Status constant for error "error while unformatting a coordinate value"
|
static int |
AST__UNMQT
Status constant for error "unmatched quotes"
|
static int |
AST__URITF
Status constant for error "unregistered IntraMap transformation function"
|
static int |
AST__VARIN
Status constant for error "variable name invalid"
|
static int |
AST__VSMAL
Status constant for error "valid area too small"
|
static int |
AST__WCSAX
Status constant for error "non-existent longitude or latitude axis"
|
static int |
AST__WCSNC
Status constant for error "too few mapping coordinates"
|
static int |
AST__WCSPA
Status constant for error "invalid projection parameters"
|
static int |
AST__WCSTY
Status constant for error "unknown projection type"
|
static int |
AST__WRERR
Status constant for error "write error"
|
static int |
AST__WRNFA
Status constant for error "wrong number of function arguments in expression"
|
static int |
AST__XMLCM
Status constant for error "invalid XML comment text"
|
static int |
AST__XMLIT
Status constant for error "invalid XML content item index"
|
static int |
AST__XMLNM
Status constant for error "invalid XML name or prefix"
|
static int |
AST__XMLPT
Status constant for error "invalid XML processing instruction target text"
|
static int |
AST__XMLWF
Status constant for error "supplied XML document is not well formed"
|
static int |
AST__XSOBJ
Status constant for error "too many Objects in use at once"
|
static int |
AST__ZERAX
Status constant for error "Range of log axis scale includes zero"
|
static int |
AST__ZOOMI
Status constant for error "zoom factor invalid"
|
static int |
SAI__ERROR
Status constant for unknown error.
|
static int |
SAI__OK
Status constant for no error.
|
Constructor and Description |
---|
AstException(String message)
Construct an AstException.
|
AstException(String msgText,
int status)
Construct an AstException with a given status value.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
Get the status value corresponding to this exception.
|
String |
getStatusName()
Get the symbolic name corresponding to this exception's status value.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int SAI__OK
public static final int SAI__ERROR
public static final int AST__ATGER
public static final int AST__ATSER
public static final int AST__ATTIN
public static final int AST__AXIIN
public static final int AST__BADAT
public static final int AST__BADBX
public static final int AST__BADIN
public static final int AST__BADNI
public static final int AST__BADNO
public static final int AST__BADPW
public static final int AST__BADSM
public static final int AST__BADWM
public static final int AST__BDBRK
public static final int AST__BDFMT
public static final int AST__BDFTS
public static final int AST__BDOBJ
public static final int AST__CLPAX
public static final int AST__CORNG
public static final int AST__CVBRK
public static final int AST__DIMIN
public static final int AST__DTERR
public static final int AST__ENDIN
public static final int AST__EOCHN
public static final int AST__EXPIN
public static final int AST__FCRPT
public static final int AST__FMTER
public static final int AST__FRMIN
public static final int AST__FRSIN
public static final int AST__FTCNV
public static final int AST__GRFER
public static final int AST__INHAN
public static final int AST__INNCO
public static final int AST__INTER
public static final int AST__INTRD
public static final int AST__KYCIR
public static final int AST__LDERR
public static final int AST__LUTII
public static final int AST__LUTIN
public static final int AST__MEMIN
public static final int AST__MTR23
public static final int AST__MTRAX
public static final int AST__MTRML
public static final int AST__MTRMT
public static final int AST__NAXIN
public static final int AST__NCHIN
public static final int AST__NCOIN
public static final int AST__NCPIN
public static final int AST__NELIN
public static final int AST__NOCTS
public static final int AST__NODEF
public static final int AST__NOFTS
public static final int AST__NOMEM
public static final int AST__NOPTS
public static final int AST__NOWRT
public static final int AST__NPTIN
public static final int AST__OBJIN
public static final int AST__OPT
public static final int AST__PDSIN
public static final int AST__PLFMT
public static final int AST__PRMIN
public static final int AST__PTRIN
public static final int AST__PTRNG
public static final int AST__RDERR
public static final int AST__REGIN
public static final int AST__REMIN
public static final int AST__SCSIN
public static final int AST__SELIN
public static final int AST__SLAIN
public static final int AST__TRNND
public static final int AST__UNMQT
public static final int AST__VSMAL
public static final int AST__WCSAX
public static final int AST__WCSNC
public static final int AST__WCSPA
public static final int AST__WCSTY
public static final int AST__XSOBJ
public static final int AST__ZOOMI
public static final int AST__BADCI
public static final int AST__ILOST
public static final int AST__ITFER
public static final int AST__ITFNI
public static final int AST__MBBNF
public static final int AST__MRITF
public static final int AST__OCLUK
public static final int AST__UNFER
public static final int AST__URITF
public static final int AST__GBDIN
public static final int AST__NGDIN
public static final int AST__PATIN
public static final int AST__SISIN
public static final int AST__SSPIN
public static final int AST__UINER
public static final int AST__UK1ER
public static final int AST__COMIN
public static final int AST__CONIN
public static final int AST__DUVAR
public static final int AST__INNTF
public static final int AST__MIOPA
public static final int AST__MIOPR
public static final int AST__MISVN
public static final int AST__MLPAR
public static final int AST__MRPAR
public static final int AST__NORHS
public static final int AST__UDVOF
public static final int AST__VARIN
public static final int AST__WRNFA
public static final int AST__BADUN
public static final int AST__NORSF
public static final int AST__NOSOR
public static final int AST__SPCIN
public static final int AST__XMLNM
public static final int AST__XMLCM
public static final int AST__XMLPT
public static final int AST__XMLIT
public static final int AST__XMLWF
public static final int AST__ZERAX
public static final int AST__BADOC
public static final int AST__MPGER
public static final int AST__MPIND
public static final int AST__REGCN
public static final int AST__NOVAL
public static final int AST__INCTS
public static final int AST__TIMIN
public static final int AST__STCKEY
public static final int AST__STCIND
public static final int AST__CNFLX
public static final int AST__TUNAM
public static final int AST__BDPAR
public static final int AST__3DFSET
public static final int AST__PXFRRM
public static final int AST__BADSUB
public static final int AST__BADFLG
public static final int AST__LCKERR
public static final int AST__FUNDEF
public static final int AST__MPVIN
public static final int AST__OPRIN
public static final int AST__NONIN
public static final int AST__MPKER
public static final int AST__MPPER
public static final int AST__BADKEY
public static final int AST__BADTYP
public static final int AST__OLDCOL
public static final int AST__BADNULL
public static final int AST__BIGKEY
public static final int AST__BADCOL
public static final int AST__BIGTAB
public static final int AST__BADSIZ
public static final int AST__BADTAB
public static final int AST__NOTAB
public static final int AST__LEVMAR
public static final int AST__NOFIT
public static final int AST__ISNAN
public static final int AST__WRERR
public AstException(String message)
message
- an explanatory messagepublic AstException(String msgText, int status)
msgText
- an explanatory messagestatus
- the numerical status valuepublic int getStatus()
public String getStatusName()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.