uk.ac.starlink.ast
Class AstException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by uk.ac.starlink.ast.AstException
All Implemented Interfaces:
Serializable

public class AstException
extends RuntimeException

Thrown to indicate that there has been an AST error of some description. If a call to the underlying AST library occurs results in a non-zero status value, an AstException is thrown. By calling 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.

Author:
Mark Taylor (Starlink)
See Also:
Serialized Form

Field Summary
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 Summary
AstException(String message)
          Construct an AstException.
AstException(String msgText, int status)
          Construct an AstException with a given status value.
 
Method Summary
 int getStatus()
          Get the status value corresponding to this exception.
 String getStatusName()
          Get the symbolic name corresponding to this exception's status value.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SAI__OK

public static final int SAI__OK
Status constant for no error. This value should never be used as the status of an AstException.


SAI__ERROR

public static final int SAI__ERROR
Status constant for unknown error. This value may be used as the status of an AstException where no value defined in the underlying library is appropriate.


AST__ATGER

public static final int AST__ATGER
Status constant for error "attribute getting error"


AST__ATSER

public static final int AST__ATSER
Status constant for error "attribute setting error"


AST__ATTIN

public static final int AST__ATTIN
Status constant for error "attribute value invalid"


AST__AXIIN

public static final int AST__AXIIN
Status constant for error "axis index invalid"


AST__BADAT

public static final int AST__BADAT
Status constant for error "bad attribute name"


AST__BADBX

public static final int AST__BADBX
Status constant for error "zero-sized box given"


AST__BADIN

public static final int AST__BADIN
Status constant for error "bad input data"


AST__BADNI

public static final int AST__BADNI
Status constant for error "bad number of input coordinates"


AST__BADNO

public static final int AST__BADNO
Status constant for error "bad number of output coordinates"


AST__BADPW

public static final int AST__BADPW
Status constant for error "PolyMap contains illegal power value"


AST__BADSM

public static final int AST__BADSM
Status constant for error "ShiftMap contains no shift information"


AST__BADWM

public static final int AST__BADWM
Status constant for error "WinMap contains no bounds information"


AST__BDBRK

public static final int AST__BDBRK
Status constant for error "bad break index"


AST__BDFMT

public static final int AST__BDFMT
Status constant for error "bad field specifier"


AST__BDFTS

public static final int AST__BDFTS
Status constant for error "invalid FITS keyword value found"


AST__BDOBJ

public static final int AST__BDOBJ
Status constant for error "inappropriate Object supplied"


AST__CLPAX

public static final int AST__CLPAX
Status constant for error "wrong number of clipping axes"


AST__CORNG

public static final int AST__CORNG
Status constant for error "range of coordinates invalid"


AST__CVBRK

public static final int AST__CVBRK
Status constant for error "too many breaks in a curve"


AST__DIMIN

public static final int AST__DIMIN
Status constant for error "array dimensions invalid"


AST__DTERR

public static final int AST__DTERR
Status constant for error "date/time error"


AST__ENDIN

public static final int AST__ENDIN
Status constant for error "invalid use of astEnd"


AST__EOCHN

public static final int AST__EOCHN
Status constant for error "end of input Channel encountered"


AST__EXPIN

public static final int AST__EXPIN
Status constant for error "attempt to export Object pointer from level zero"


AST__FCRPT

public static final int AST__FCRPT
Status constant for error "corrupted FitsChan supplied"


AST__FMTER

public static final int AST__FMTER
Status constant for error "error while formatting coordinate value"


AST__FRMIN

public static final int AST__FRMIN
Status constant for error "Frame index invalid"


AST__FRSIN

public static final int AST__FRSIN
Status constant for error "FrameSet invalid"


AST__FTCNV

public static final int AST__FTCNV
Status constant for error "cannot convert FITS data value type"


AST__GRFER

public static final int AST__GRFER
Status constant for error "low level graphics error"


AST__INHAN

public static final int AST__INHAN
Status constant for error "invalid Handle"


AST__INNCO

public static final int AST__INNCO
Status constant for error "incompatible numbers of coordinates"


AST__INTER

public static final int AST__INTER
Status constant for error "internal programming error"


AST__INTRD

public static final int AST__INTRD
Status constant for error "incompatible transformation directions"


AST__KYCIR

public static final int AST__KYCIR
Status constant for error "circular dependency between KeyMaps"


AST__LDERR

public static final int AST__LDERR
Status constant for error "class loader error"


AST__LUTII

public static final int AST__LUTII
Status constant for error "invalid lookup table increment"


AST__LUTIN

public static final int AST__LUTIN
Status constant for error "invalid number of lookup table elements"


AST__MEMIN

public static final int AST__MEMIN
Status constant for error "requested memory size invalid"


AST__MTR23

public static final int AST__MTR23
Status constant for error "not a 2d or 3d MatrixMap"


AST__MTRAX

public static final int AST__MTRAX
Status constant for error "null rotation axis supplied"


AST__MTRML

public static final int AST__MTRML
Status constant for error "bad matrix shapes for multiplication"


AST__MTRMT

public static final int AST__MTRMT
Status constant for error "null matrix supplied"


AST__NAXIN

public static final int AST__NAXIN
Status constant for error "number of axes invalid"


AST__NCHIN

public static final int AST__NCHIN
Status constant for error "number of characters invalid"


AST__NCOIN

public static final int AST__NCOIN
Status constant for error "number of coordinates invalid"


AST__NCPIN

public static final int AST__NCPIN
Status constant for error "number of coordinates per point invalid"


AST__NELIN

public static final int AST__NELIN
Status constant for error "number of array elements invalid"


AST__NOCTS

public static final int AST__NOCTS
Status constant for error "number of output coordinates too small"


AST__NODEF

public static final int AST__NODEF
Status constant for error "transformation not defined"


AST__NOFTS

public static final int AST__NOFTS
Status constant for error "required FITS keywords missing"


AST__NOMEM

public static final int AST__NOMEM
Status constant for error "unable to allocate memory"


AST__NOPTS

public static final int AST__NOPTS
Status constant for error "number of output points too small"


AST__NOWRT

public static final int AST__NOWRT
Status constant for error "attribute is read-only"


AST__NPTIN

public static final int AST__NPTIN
Status constant for error "number of points invalid"


AST__OBJIN

public static final int AST__OBJIN
Status constant for error "Object invalid"


AST__OPT

public static final int AST__OPT
Status constant for error "invalid Plot option"


AST__PDSIN

public static final int AST__PDSIN
Status constant for error "points data structure invalid"


AST__PLFMT

public static final int AST__PLFMT
Status constant for error "no numerical labels can be produced"


AST__PRMIN

public static final int AST__PRMIN
Status constant for error "permutation invalid"


AST__PTRIN

public static final int AST__PTRIN
Status constant for error "pointer invalid"


AST__PTRNG

public static final int AST__PTRNG
Status constant for error "range of points invalid"


AST__RDERR

public static final int AST__RDERR
Status constant for error "read error"


AST__REGIN

public static final int AST__REGIN
Status constant for error "invalid or corrupted Region structure supplied"


AST__REMIN

public static final int AST__REMIN
Status constant for error "invalid attempt to remove last Frame"


AST__SCSIN

public static final int AST__SCSIN
Status constant for error "sky coordinate system invalid"


AST__SELIN

public static final int AST__SELIN
Status constant for error "axis selection invalid"


AST__SLAIN

public static final int AST__SLAIN
Status constant for error "bad SLALIB transformation type"


AST__TRNND

public static final int AST__TRNND
Status constant for error "coordinate transformation not defined"


AST__UNMQT

public static final int AST__UNMQT
Status constant for error "unmatched quotes"


AST__VSMAL

public static final int AST__VSMAL
Status constant for error "valid area too small"


AST__WCSAX

public static final int AST__WCSAX
Status constant for error "non-existent longitude or latitude axis"


AST__WCSNC

public static final int AST__WCSNC
Status constant for error "too few mapping coordinates"


AST__WCSPA

public static final int AST__WCSPA
Status constant for error "invalid projection parameters"


AST__WCSTY

public static final int AST__WCSTY
Status constant for error "unknown projection type"


AST__XSOBJ

public static final int AST__XSOBJ
Status constant for error "too many Objects in use at once"


AST__ZOOMI

public static final int AST__ZOOMI
Status constant for error "zoom factor invalid"


AST__BADCI

public static final int AST__BADCI
Status constant for error "bad coordinate index"


AST__ILOST

public static final int AST__ILOST
Status constant for error "FrameSet integrity lost"


AST__ITFER

public static final int AST__ITFER
Status constant for error "error in IntraMap transformation function"


AST__ITFNI

public static final int AST__ITFNI
Status constant for error "IntraMap transformation function name invalid"


AST__MBBNF

public static final int AST__MBBNF
Status constant for error "Mapping bounding box not found"


AST__MRITF

public static final int AST__MRITF
Status constant for error "multiple registration of IntraMap transformation function"


AST__OCLUK

public static final int AST__OCLUK
Status constant for error "Object class unknown"


AST__UNFER

public static final int AST__UNFER
Status constant for error "error while unformatting a coordinate value"


AST__URITF

public static final int AST__URITF
Status constant for error "unregistered IntraMap transformation function"


AST__GBDIN

public static final int AST__GBDIN
Status constant for error "grid bounds invalid"


AST__NGDIN

public static final int AST__NGDIN
Status constant for error "number of grid dimensions invalid"


AST__PATIN

public static final int AST__PATIN
Status constant for error "positional accuracy tolerance invalid"


AST__SISIN

public static final int AST__SISIN
Status constant for error "sub-pixel interpolation scheme invalid"


AST__SSPIN

public static final int AST__SSPIN
Status constant for error "scale size in pixels invalid"


AST__UINER

public static final int AST__UINER
Status constant for error "error in user-supplied sub-pixel interpolation function"


AST__UK1ER

public static final int AST__UK1ER
Status constant for error "error in user-supplied 1-d sub-pixel interpolation kernel"


AST__COMIN

public static final int AST__COMIN
Status constant for error "invalid comma in expression"


AST__CONIN

public static final int AST__CONIN
Status constant for error "invalid constant in expression"


AST__DUVAR

public static final int AST__DUVAR
Status constant for error "duplicate variable name"


AST__INNTF

public static final int AST__INNTF
Status constant for error "invalid number of transformation functions"


AST__MIOPA

public static final int AST__MIOPA
Status constant for error "missing or invalid operand in expression"


AST__MIOPR

public static final int AST__MIOPR
Status constant for error "missing or invalid operator in expression"


AST__MISVN

public static final int AST__MISVN
Status constant for error "missing variable name"


AST__MLPAR

public static final int AST__MLPAR
Status constant for error "missing left parenthesis in expression"


AST__MRPAR

public static final int AST__MRPAR
Status constant for error "missing right parenthesis in expression"


AST__NORHS

public static final int AST__NORHS
Status constant for error "missing right hand side in function"


AST__UDVOF

public static final int AST__UDVOF
Status constant for error "undefined variable or function in expression"


AST__VARIN

public static final int AST__VARIN
Status constant for error "variable name invalid"


AST__WRNFA

public static final int AST__WRNFA
Status constant for error "wrong number of function arguments in expression"


AST__BADUN

public static final int AST__BADUN
Status constant for error "invalid units specification"


AST__NORSF

public static final int AST__NORSF
Status constant for error "no rest frequency is defined"


AST__NOSOR

public static final int AST__NOSOR
Status constant for error "no standard of rest is defined"


AST__SPCIN

public static final int AST__SPCIN
Status constant for error "invalid SpecMap"


AST__XMLNM

public static final int AST__XMLNM
Status constant for error "invalid XML name or prefix"


AST__XMLCM

public static final int AST__XMLCM
Status constant for error "invalid XML comment text"


AST__XMLPT

public static final int AST__XMLPT
Status constant for error "invalid XML processing instruction target text"


AST__XMLIT

public static final int AST__XMLIT
Status constant for error "invalid XML content item index"


AST__XMLWF

public static final int AST__XMLWF
Status constant for error "supplied XML document is not well formed"


AST__ZERAX

public static final int AST__ZERAX
Status constant for error "Range of log axis scale includes zero"


AST__BADOC

public static final int AST__BADOC
Status constant for error "Invalid parameters for offset sky coordinate system"


AST__MPGER

public static final int AST__MPGER
Status constant for error "error getting a named value from a KeyMap"


AST__MPIND

public static final int AST__MPIND
Status constant for error "invalid integer index supplied for a KeyMap entry"


AST__REGCN

public static final int AST__REGCN
Status constant for error "region cannot be re-centred"


AST__NOVAL

public static final int AST__NOVAL
Status constant for error "attribute has no usable value"


AST__INCTS

public static final int AST__INCTS
Status constant for error "incompatible time scales"


AST__TIMIN

public static final int AST__TIMIN
Status constant for error "invalid TimeMap"


AST__STCKEY

public static final int AST__STCKEY
Status constant for error "cannot use supplied AstroCoords info"


AST__STCIND

public static final int AST__STCIND
Status constant for error "invalid AstroCoords index"


AST__CNFLX

public static final int AST__CNFLX
Status constant for error "cannot conserve flux whilst resampling an array of data"


AST__TUNAM

public static final int AST__TUNAM
Status constant for error "Unknown AST tuning parameter name supplied"


AST__BDPAR

public static final int AST__BDPAR
Status constant for error "Bad value supplied for a public function parameter"


AST__3DFSET

public static final int AST__3DFSET
Status constant for error "Supplied FrameSet does not contain any independent axes"


AST__PXFRRM

public static final int AST__PXFRRM
Status constant for error "Attempt to delete original Plot3D base Frame"


AST__BADSUB

public static final int AST__BADSUB
Status constant for error "Illegal syntax for string substitution template"


AST__BADFLG

public static final int AST__BADFLG
Status constant for error "Incompatible flags for re-sampling or re-binning"


AST__LCKERR

public static final int AST__LCKERR
Status constant for error "Error locking or unlocking an AST Object"


AST__FUNDEF

public static final int AST__FUNDEF
Status constant for error "FITS keyword had undefined value"


AST__MPVIN

public static final int AST__MPVIN
Status constant for error "invalid integer index supplied for a KeyMap vector element"


AST__OPRIN

public static final int AST__OPRIN
Status constant for error "operation specifier invalid"


AST__NONIN

public static final int AST__NONIN
Status constant for error "no inside point found"


AST__MPKER

public static final int AST__MPKER
Status constant for error "requested key not found in KeyMap"


AST__MPPER

public static final int AST__MPPER
Status constant for error "error putting a named value into a KeyMap"


AST__BADKEY

public static final int AST__BADKEY
Status constant for error "Attempt made to add an entry to a locked KeyMap"


AST__BADTYP

public static final int AST__BADTYP
Status constant for error "Bad data type"


AST__OLDCOL

public static final int AST__OLDCOL
Status constant for error "Column already exists with different properties"


AST__BADNULL

public static final int AST__BADNULL
Status constant for error "Bad null value for a FITS table column"


AST__BIGKEY

public static final int AST__BIGKEY
Status constant for error "Key string is too long"


AST__BADCOL

public static final int AST__BADCOL
Status constant for error "No such column exists in the table"


AST__BIGTAB

public static final int AST__BIGTAB
Status constant for error "Table is too large"


AST__BADSIZ

public static final int AST__BADSIZ
Status constant for error "Invalid array size"


AST__BADTAB

public static final int AST__BADTAB
Status constant for error "Error reading WCS from FITS binary table"


AST__NOTAB

public static final int AST__NOTAB
Status constant for error "Cannot access FITS binary table"


AST__LEVMAR

public static final int AST__LEVMAR
Status constant for error "Error in levmar Levenberg-Marquardt code"


AST__NOFIT

public static final int AST__NOFIT
Status constant for error "Fit failed"


AST__ISNAN

public static final int AST__ISNAN
Status constant for error "A transformation generated one or more NaN values"


AST__WRERR

public static final int AST__WRERR
Status constant for error "write error"

Constructor Detail

AstException

public AstException(String message)
Construct an AstException.

Parameters:
message - an explanatory message

AstException

public AstException(String msgText,
                    int status)
Construct an AstException with a given status value.

Parameters:
msgText - an explanatory message
status - the numerical status value
Method Detail

getStatus

public int getStatus()
Get the status value corresponding to this exception. This ought to correspond to the value of one of this class's static final member fields.

Returns:
the error status value

getStatusName

public String getStatusName()
Get the symbolic name corresponding to this exception's status value. This ought to correspond to the name of one of this class's static final memeber fields.

Returns:
the error status name


Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.