libsbml.SBMLError Class Reference

Inheritance diagram for libsbml.SBMLError:

Inheritance graph
[legend]

List of all members.


Detailed Description

Representation of errors, warnings and other diagnostics.

This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.

When a libSBML operation on SBML content results in an error, or when there is something wrong with the SBML content, the problems are reported as SBMLError objects. These are generally stored in an SBMLErrorLog object; this log object, in turn, is kept in the SBMLDocument object containing the SBML content. Applications can obtain the list of logged errors using SBMLDocument.getErrorLog() and then use the methods provided by SBMLErrorLog to access individual SBMLError objects. (Note that despite the word 'error' in the name, SBMLError objects are used to represent not only 'true' errors, but also warnings and some informational diagnostics. The name is a historical hold-over from early versions of libSBML, in which the object really was only used to report errors.)

Each SBMLError object instance has an identification number that identifies the nature of the problem. This 'error id' number will be up to five digits long,

Error codes are useful mainly for software. For human readers, SBMLError also includes text messages that describe the nature of a given problem. The messages can be accessed using SBMLError.getShortMessage() and SBMLError.getMessage(). The former provides a brief one-line description of the issue, while SBMLError.getMessage() provides a more detailed text, including (if appropriate) references to sections of the SBML specifications where relevant topics are discussed. These text strings are suitable for displaying to human users.

An SBMLError object also contains a category code; its value may be retrieved using the method SBMLError.getCategory(). Category values are

In addition, SBMLError also has a severity code. Its value may be retrieved using the method SBMLError.getSeverity(). The possible severity values are the same as those reported by

Finally, SBMLError records the line and column near where the problem occurred in the SBML content. The values may be retrieved using the methods SBMLError.getLine() and SBMLError.getColumn(). We say 'near', because a lot of factors affect how accurate the line/column information ultimately is. For example, different XML parsers have different conventions for which line and column number they report for a particular problem (which makes a difference when a problem involves an opening XML tag on one line and a closing tag on another line). In some situations, some parsers report invalid line and/or column numbers altogether. If this occurs, libSBML sets the line and/or column number in the SBMLError object to the the value of the maximum unsigned long integer representable on the platform where libSBML is running. (This is equal to the constant named ULONG_MAX in C and C++.) The probability that a true line or column number in an SBML model would equal this value is vanishingly small; thus, if an application encounters these values in an XMLError object, it can assume no valid line/column number could be provided by libSBML in that situation.

N= Not applicable
I= Informational
W= Warning
E= Error
F= Fatal

The text shown in the 'Meaning' is the text returned by the SBMLError.getShortMessage() method on a given SBMLError object. A longer and (hopefully) clearer explanation of the issue is returned by SBMLError.getMessage().

Enumerator Meaning L 1 V 1 L 1 V 2 L 2 V 1 L 2 V 2 L 2 V 3 L 2 V 4
UnknownErrorUnknown internal libSBML errorFFFFFF
NotUTF8Not UTF8EEEEEE
UnrecognizedElementUnrecognized elementEEEEEE
NotSchemaConformantNot conformant to SBML XML schemaEEEEEE
InvalidMathElementInvalid MathMLNNEEEE
DisallowedMathMLSymbolDisallowed MathML symbolNNEEEE
DisallowedMathMLEncodingUseDisallowed use of MathML encoding attributeNNEEEE
DisallowedDefinitionURLUseDisallowed use of MathML definitionURL attributeNNEEEE
BadCsymbolDefinitionURLValueInvalid <csymbol> definitionURL attribute valueNNEEEE
DisallowedMathTypeAttributeUseDisallowed use of MathML type attributeNNEEEE
DisallowedMathTypeAttributeValueDisallowed MathML type attribute valueNNEEEE
LambdaOnlyAllowedInFunctionDefUse of <lambda> not permitted outside of a <functionDefinition>NNEEEE
BooleanOpsNeedBooleanArgsNon-boolean argument given to boolean operatorNNWEEE
NumericOpsNeedNumericArgsNon-numerical argument given to numerical operatorNNWEEE
ArgsToEqNeedSameTypeArguments to <eq> or <neq> have inconsistent data typesNNWEEE
PiecewiseNeedsConsistentTypes<piecewise> terms have inconsistent data typesNNWEEE
PieceNeedsBooleanSecond argument of <piece> must yield a boolean valueNNWEEE
ApplyCiMustBeUserFunction<ci> does not refer to a function definitionNNWEEE
ApplyCiMustBeModelComponent<ci>'s value is not a component in this modelNNWEEE
KineticLawParametersAreLocalOnlyCannot use <kineticLaw> parameter outside local scopeNNWEEE
MathResultMustBeNumericFormula result is not a numerical valueNNWEEE
OpsNeedCorrectNumberOfArgsIncorrect number of arguments to operatorNNWEEE
InvalidNoArgsPassedToFunctionDefIncorrect number of arguments to functionNNNNNE
DuplicateComponentIdDuplicate component identifierEEEEEE
DuplicateUnitDefinitionIdDuplicate unit definition identifierEEEEEE
DuplicateLocalParameterIdDuplicate local parameter identifierEEEEEE
MultipleAssignmentOrRateRulesMultiple rules for the same variableEEEEEE
MultipleEventAssignmentsForIdMultiple event assignments for the same variableNNEEEE
EventAndAssignmentRuleForIdvariable value used in both event assignments and assignment rulesNNEEEE
DuplicateMetaIdDuplicate metaid identifierNNEEEE
InvalidSBOTermSyntaxInvalid sboTerm value syntaxNNNEEE
InvalidMetaidSyntaxInvalid metaid value syntaxNNEEEE
InvalidIdSyntaxInvalid identifier syntaxEEEEEE
InvalidUnitIdSyntaxInvalid unit identifier syntaxNNNEEE
MissingAnnotationNamespaceMissing declaration of XML namespace for annotationNNNEEE
DuplicateAnnotationNamespacesMultiple annotations using same XML namespaceNNNEEE
SBMLNamespaceInAnnotationInvalid use of SBML XML namespace in annotationNNNEEE
InconsistentArgUnitsUnits of arguments to function call do not match function's definitionWWWEEW
AssignRuleCompartmentMismatchMismatched units in assignment rule for compartmentEEEEEW
AssignRuleSpeciesMismatchMismatched units in assignment rule for speciesEEEEEW
AssignRuleParameterMismatchMismatched units in assignment rule for parameterEEEEEW
InitAssignCompartmenMismatchMismatched units in initial assignment to compartmentNNNEEW
InitAssignSpeciesMismatchMismatched units in initial assignment to speciesNNNEEW
InitAssignParameterMismatchMismatched units in initial assignment to parameterNNNEEW
RateRuleCompartmentMismatchMismatched units in rate rule for compartmentEEEEEW
RateRuleSpeciesMismatchMismatched units in rate rule for speciesEEEEEW
RateRuleParameterMismatchMismatched units in rate rule for parameterEEEEEW
KineticLawNotSubstancePerTimeKinetic law units are not substance/timeEEEEEW
DelayUnitsNotTimeUnits of delay are not units of timeNNEEEW
EventAssignCompartmentMismatchMismatched units in event assignment for compartmentNNEEEW
EventAssignSpeciesMismatchMismatched units in event assignment for speciesNNEEEW
EventAssignParameterMismatchMismatched units in event assignment for parameterNNEEEW
OverdeterminedSystemModel is overdeterminedWWWEEE
InvalidModelSBOTermInvalid sboTerm value for modelNNNEEW
InvalidFunctionDefSBOTermInvalid sboTerm value for function definitionNNNEEW
InvalidParameterSBOTermInvalid sboTerm value for parameterNNNEEW
InvalidInitAssignSBOTermInvalid sboTerm value for initial assignmentNNNEEW
InvalidRuleSBOTermInvalid sboTerm value for ruleNNNEEW
InvalidConstraintSBOTermInvalid sboTerm value for constraintNNNEEW
InvalidReactionSBOTermInvalid sboTerm value for reactionNNNEEW
InvalidSpeciesReferenceSBOTermInvalid sboTerm value for species referenceNNNEEW
InvalidKineticLawSBOTermInvalid sboTerm value for kinetic lawNNNEEW
InvalidEventSBOTermInvalid sboTerm value for eventNNNEEW
InvalidEventAssignmentSBOTermInvalid sboTerm value for event assignmentNNNEEW
InvalidCompartmentSBOTermInvalid sboTerm value for compartmentNNNNEW
InvalidSpeciesSBOTermInvalid sboTerm value for speciesNNNNEW
InvalidCompartmentTypeSBOTermInvalid sboTerm value for compartment typeNNNNEW
InvalidSpeciesTypeSBOTermInvalid sboTerm value for species typeNNNNEW
InvalidTriggerSBOTermInvalid sboTerm value for event triggerNNNNEW
InvalidDelaySBOTermInvalid sboTerm value for event delayNNNNEW
NotesNotInXHTMLNamespaceNotes not placed in XHTML namespaceEEEEEE
NotesContainsXMLDeclXML declarations not permitted in notesNNNEEE
NotesContainsDOCTYPEXML DOCTYPE not permitted in notesNNNEEE
InvalidNotesContentInvalid notes contentNNNEEE
InvalidNamespaceOnSBMLInvalid XML namespace for SBML containerEEEEEE
MissingOrInconsistentLevelMissing or inconsistent value for level attributeEEEEEE
MissingOrInconsistentVersionMissing or inconsistent value for version attributeEEEEEE
AnnotationNotesNotAllowedLevel1Annotation on <sbml> not permitted in SBML Level 1EENNNN
MissingModelMissing modelEEEEEE
IncorrectOrderInModelIncorrect ordering of components in model definitionEEEEEE
EmptyListElementA given listOf___, if present, cannot be emptyEEEEEE
NeedCompartmentIfHaveSpeciesMissing compartment in species definitionEEEEEE
FunctionDefMathNotLambdaInvalid expression in function definitionNNEEEE
InvalidApplyCiInLambdaInvalid forward reference in <apply><ci>...</ci></apply> valueNNEEEN
RecursiveFunctionDefinitionRecursive function definitionNNEEEE
InvalidCiInLambdaUnknown <ci> reference in <lambda>NNEEEE
InvalidFunctionDefReturnTypeFunction return type must be either numerical or booleanNNEEEE
InvalidUnitDefIdInvalid id value for unit definitionEEEEEE
InvalidSubstanceRedefinitionInvalid redefinition of substanceEEEEEE
InvalidLengthRedefinitionInvalid redefinition of lengthWWEEEE
InvalidAreaRedefinitionInvalid redefinition of areaWWEEEE
InvalidTimeRedefinitionInvalid redefinition of timeEEEEEE
InvalidVolumeRedefinitionInvalid redefinition of volumeEEEEEE
VolumeLitreDefExponentNotOneMust use exponent=1 when defining volume in terms of litresEEEEEN
VolumeMetreDefExponentNot3Must use exponent=3 when defining volume in terms of metresNNEEEN
EmptyListOfUnitsEmpty list of units not permittedEEEEEE
InvalidUnitKindInvalid value of kind in unit definitionEEEEEE
OffsetNoLongerValidoffset not supported in this Level+Version of SBMLNNNEEN
CelsiusNoLongerValidCelsius not defined in this Level+Version of SBMLNNNEEN
ZeroDimensionalCompartmentSizeUse of size is invalid for a zero-dimensional compartmentNNEEEE
ZeroDimensionalCompartmentUnitsUse of units is invalid for a zero-dimensional compartmentNNEEEE
ZeroDimensionalCompartmentConstZero-dimensional compartments cannot be non-constantNNEEEE
UndefinedOutsideCompartmentUndefined compartment used as outside valueEEEEEE
RecursiveCompartmentContainmentRecursive nesting of compartments via outsideWWWEEE
ZeroDCompartmentContainmentInvalid nesting of zero-dimensional compartmentsNNWEEE
Invalid1DCompartmentUnitsInvalid value of units for a one-dimensional compartmentNNEEEE
Invalid2DCompartmentUnitsInvalid value of units for a two-dimensional compartmentNNEEEE
Invalid3DCompartmentUnitsInvalid value of units for a three-dimensional compartmentEEEEEE
InvalidCompartmentTypeRefInvalid compartmentType referenceNNNEEE
InvalidSpeciesCompartmentRefInvalid compartment referenceEEEEEE
HasOnlySubsNoSpatialUnitsNo spatialSizeUnits permitted if hasOnlySubstanceUnits=trueNNEENN
NoSpatialUnitsInZeroDNo spatialSizeUnits permitted if compartment is zero-dimensionalNNEENN
NoConcentrationInZeroDNo initialConcentration permitted if compartment is zero-dimensionalNNEEEE
SpatialUnitsInOneDInvalid value of spatialSizeUnits for a one-dimensional compartmentNNEENN
SpatialUnitsInTwoDInvalid value of spatialSizeUnits for a two-dimensional compartmentNNEENN
SpatialUnitsInThreeDInvalid value of spatialSizeUnits for a three-dimensional compartmentNNEENN
InvalidSpeciesSusbstanceUnitsInvalid value of unitsEEEEEE
BothAmountAndConcentrationSetCannot set both initialConcentration and initialAmountNNEEEE
NonBoundarySpeciesAssignedAndUsedCannot use non-boundary species in both reactions and rules simultaneouslyWWEEEE
NonConstantSpeciesUsedCannot use non-boundary, constant species as reactant or productNNEEEE
InvalidSpeciesTypeRefInvalid speciesType referenceNNNEEE
MultSpeciesSameTypeInCompartmentCannot have multiple species of the same type in the same compartmentNNNEEE
MissingSpeciesCompartmentMissing compartment value for speciesEEEEEE
SpatialSizeUnitsRemovedAttribute spatialSizeUnits not supported in this Level+Version of SBMLNNNNEE
InvalidParameterUnitsInvalid value for units in parameter definitionEEEEEE
InvalidInitAssignSymbolInvalid symbol reference in initial assignmentNNNEEE
MultipleInitAssignmentsMultiple initial assignments for the same symbol valueNNNEEE
InitAssignmentAndRuleForSameIdCannot set a value with both initial assignments and assignment rules simultaneouslyNNNEEE
InvalidAssignRuleVariableInvalid variable reference in assignment ruleEEEEEE
InvalidRateRuleVariableInvalid variable reference in rate ruleEEEEEE
AssignmentToConstantEntityCannot reassign a constant in an assignment ruleNNEEEE
RateRuleForConstantEntityCannot reassign a constant in a rate ruleNNEEEE
CircularRuleDependencyCircular dependency involving rules and reactionsNNNEEE
ConstraintMathNotBooleanNon-boolean math expression in constraint definitionNNNEEE
IncorrectOrderInConstraintIncorrect order of elements in constraint definitionNNNEEE
ConstraintNotInXHTMLNamespaceConstraint message is not in XHTML XML namespaceNNNEEE
ConstraintContainsXMLDeclXML declarations not permitted in constraint messagesNNNEEE
ConstraintContainsDOCTYPEXML DOCTYPE not permitted in constraint messagesNNNEEE
InvalidConstraintContentInvalid content for constraint messageNNNEEE
NoReactantsOrProductsCannot have a reaction with neither reactants nor productsEEEEEE
IncorrectOrderInReactionIncorrect ordering of components in reaction definitionEEEEEE
EmptyListInReactionReaction components, if present, cannot be emptyEEEEEE
InvalidReactantsProductsListInvalid element in list of reactants or productsEEEEEE
InvalidModifiersListInvalid element in list of modifiersNNEEEE
InvalidSpeciesReferenceInvalid species value in species referenceEEEEEE
BothStoichiometryAndMathCannot use both stoichiometry and <stoichiometryMath> simultaneouslyNNEEEE
UndeclaredSpeciesRefUndeclared species referenced in kinetic law formulaWWEEEE
IncorrectOrderInKineticLawIncorrect ordering of components in kinetic law definitionNNEEEE
EmptyListInKineticLawThe list of parameters component, if present, cannot be emptyEEEEEE
NonConstantLocalParameterParameters local to a kinetic law must have constant=trueNNWEEE
SubsUnitsNoLongerValidsubstanceUnits not supported in this Level+Version of SBMLNNNEEN
TimeUnitsNoLongerValidtimeUnits not supported in this Level+Version of SBMLNNNEEN
UndeclaredSpeciesInStoichMathUndeclared species referenced in <stoichiometryMath> formulaNNWEEE
MissingTriggerInEventMissing trigger in event definitionNNEEEE
TriggerMathNotBooleanNon-boolean math expression in trigger definitionNNEEEE
MissingEventAssignmentMissing event assignment in event definitionNNEEEE
TimeUnitsEventUnits of timeUnits are not time unitsNNEENN
IncorrectOrderInEventIncorrect ordering of components in event definitionNNEEEE
ValuesFromTriggerTimeNeedDelayuseValuesFromTriggerTime=false, but no delay defined in eventNNNNNE
InvalidEventAssignmentVariableInvalid value for variable in event assignmentNNEEEE
EventAssignmentForConstantEntityCannot assign to a constant component in an event assignmentNNWEEE
CompartmentShouldHaveSizeIt's best to define a size for every compartment in a modelNNWWWW
ParameterShouldHaveUnitsIt's best to declare units for every parameter in a modelWWWWWW
LocalParameterShadowsIdLocal parameters defined in a kinetic law shadow global parametersWWWWWW
CannotConvertToL1V1Cannot convert to SBML Level 1 Version 1NEEEEE
NoEventsInL1SBML Level 1 does not support eventsNNEEEE
NoFunctionDefinitionsInL1SBML Level 1 does not support function definitionsNNEEEE
NoConstraintsInL1SBML Level 1 does not support constraintsNNNWWW
NoInitialAssignmentsInL1SBML Level 1 does not support initial assignmentsNNNEEE
NoSpeciesTypesInL1SBML Level 1 does not support species typesNNNWWW
NoCompartmentTypeInL1SBML Level 1 does not support compartment typesNNNWWW
NoNon3DComparmentsInL1SBML Level 1 only supports three-dimensional compartmentsNNEEEE
NoFancyStoichiometryMathInL1SBML Level 1 does not support non-integer nor non-rational stoichiometry formulasNNEEEE
NoNonIntegerStoichiometryInL1SBML Level 1 does not support non-integer stoichiometry attribute valuesNNEEEE
NoUnitMultipliersOrOffsetsInL1SBML Level 1 does not support multipliers or offsets in unit definitionsNNEEEE
SpeciesCompartmentRequiredInL1In SBML Level 1, a value for compartment is mandatory in species definitionsNNEEEE
NoSpeciesSpatialSizeUnitsInL1SBML Level 1 does not support species spatialSizeUnits settingsNNEEEE
NoSBOTermsInL1SBML Level 1 does not support the sboTerm attributeNNNWWW
StrictUnitsRequiredInL1SBML Level 1 requires strict unit consistencyNNNNNE
NoConstraintsInL2v1SBML Level 2 Version 1 does not support constraintsNNNWWW
NoInitialAssignmentsInL2v1SBML Level 2 Version 1 does not support initial assignmentsNNNEEE
NoSpeciesTypeInL2v1SBML Level 2 Version 1 does not support species typesNNNWWW
NoCompartmentTypeInL2v1SBML Level 2 Version 1 does not support compartment typesNNNWWW
NoSBOTermsInL2v1SBML Level 2 Version 1 does not support the sboTerm attributeNNNWWW
NoIdOnSpeciesReferenceInL2v1SBML Level 2 Version 1 does not support the id attribute on species referencesNNNWWW
NoDelayedEventAssignmentInL2v1Attribute useValuesFromTriggerTime not supported in this Level+Version of SBMLNNNNNE
StrictUnitsRequiredInL2v1SBML Level 2 Version 1 requires strict unit consistencyNNNNNE
SBOTermNotUniversalInL2v2The sboTerm attribute is invalid for this component in Level 2 Version 2NNNNWW
NoUnitOffsetInL2v2The unit offset attribute is invalid in this Level+Version of SBMLNNENNN
NoKineticLawTimeUnitsInL2v2The timeUnits attribute is invalid in this Level+Version of SBMLEEENNN
NoKineticLawSubstanceUnitsInL2v2The substanceUnits attribute is invalid in this Level+Version of SBMLEEENNN
NoDelayedEventAssignmentInL2v2Attribute useValuesFromTriggerTime not supported in this Level+Version of SBMLNNNNNE
ModelSBOBranchChangedBeyondL2v2The allowable sboTerm values for model differ for this SBML Level+VersionNNNNNE
StrictUnitsRequiredInL2v2SBML Level 2 Version 2 requires strict unit consistencyNNNNNE
StrictSBORequiredInL2v2SBML Level 2 Version 2 requires strict sbo consistencyNNNNNE
DuplicateAnnotationInvalidInL2v2Duplicate top level annotations invalid for this SBML Level+VersionWWWNNN
NoUnitOffsetInL2v3Attribute offset not supported in this Level+Version of SBMLNNENNN
NoKineticLawTimeUnitsInL2v3Attribute timeUnits not supported in this Level+Version of SBMLEEENNN
NoKineticLawSubstanceUnitsInL2v3Attribute substanceUnits not supported in this Level+Version of SBMLEEENNN
NoSpeciesSpatialSizeUnitsInL2v3Attribute spatialSizeUnits not supported in this Level+Version of SBMLNNEENN
NoEventTimeUnitsInL2v3Attribute timeUnits not supported in this Level+Version of SBMLNNEENN
NoDelayedEventAssignmentInL2v3Attribute useValuesFromTriggerTime not supported in this Level+Version of SBMLNNNNNE
ModelSBOBranchChangedBeyondL2v3The allowable sboTerm values for model differ for this SBML Level+VersionNNNNNE
StrictUnitsRequiredInL2v3SBML Level 2 Version 3 requires strict unit consistencyNNNNNE
StrictSBORequiredInL2v3SBML Level 2 Version 3 requires strict sbo consistencyNNNNNE
DuplicateAnnotationInvalidInL2v3Duplicate top level annotations invalid for this SBML Level+VersionWWWNNN
NoUnitOffsetInL2v4The unit offset attribute is invalid in this Level+Version of SBMLNNENNN
NoKineticLawTimeUnitsInL2v4The timeUnits attribute is invalid in this Level+Version of SBMLEEENNN
NoKineticLawSubstanceUnitsInL2v4The substanceUnits attribute is invalid in this Level+Version of SBMLEEENNN
NoSpeciesSpatialSizeUnitsInL2v4The spatialSizeUnits attribute is invalid in this Level+Version of SBMLNNEENN
NoEventTimeUnitsInL2v4The timeUnits attribute is invalid in this Level+Version of SBMLNNEENN
ModelSBOBranchChangedInL2v4The allowable sboTerm values for model differ for this SBML Level+VersionNNNEEN
DuplicateAnnotationInvalidInL2v4Duplicate top level annotations invalid for this SBML Level+VersionWWWNNN
InvalidSBMLLevelVersionInvalid SBML Level and VersionEEEEEE
InvalidRuleOrderingInvalid ordering of rulesEEENNN
SubsUnitsAllowedInKLDisallowed value for attribute substanceUnitsEEENNN
TimeUnitsAllowedInKLDisallowed value for attribute timeUnitsEEENNN
FormulaInLevel1KLOnly predefined functions are permitted in SBML Level 1 formulasEENNNN
TimeUnitsRemovedThe timeUnits attribute is invalid in this Level+Version of SBMLNNNNEE
BadMathMLInvalid MathML expressionNNEEEE
FailedMathMLReadOfDoubleFailed to read floating-point numberNNEEEE
FailedMathMLReadOfIntegerFailed to read an integerNNEEEE
FailedMathMLReadOfExponentialFailed to read an exponential expressionNNEEEE
FailedMathMLReadOfRationalFailed to read a rational expressionNNEEEE
BadMathMLNodeTypeInvalid MathML elementNNEEEE
NoTimeSymbolInFunctionDef<csymbol> for time used within the <math> of a function definitionNNWEEE
UndeclaredUnitsUndeclared unitsWWWWWW
UnrecognisedSBOTermUnrecognized sboTerm valueNNNWWW
ObseleteSBOTermObsolete sboTerm valueNNNWWW
IncorrectCompartmentSpatialDimensionsin SBML Level 1, only three-dimensional compartments are permittedEENNNN
CompartmentTypeNotValidAttributeCompartment types not supported in this Level+Version of SBMLEEENNN
ConstantNotValidAttributeAttribute constant not supported on this component in SBML Level 1EENNNN
MetaIdNotValidAttributeAttribute metaid not supported in SBML Level 1EENNNN
SBOTermNotValidAttributeBeforeL2V3sboTerm not available on this component before SBML Level 2 Version 3EEEENN
InvalidL1CompartmentUnitsInvalid units for a compartment in SBML Level 1EENNNN
L1V1CompartmentVolumeReqdCompartment volume must be specifiedENNNNN
CompartmentTypeNotValidComponentCompartment types not supported in this Level+Version of SBMLEEENNN
ConstraintNotValidComponentConstraints not supported in this Level+Version of SBMLEEENNN
EventNotValidComponentEvents not supported in this Level+Version of SBMLEENNNN
SBOTermNotValidAttributeBeforeL2V2The sboTerm attribute is invalid for this component before Level 2 Version 2EEENNN
FuncDefNotValidComponentFunction definitions are not supported in this Level+Version of SBMLEENNNN
InitialAssignNotValidComponentInitial assignments are not supported in this Level+Version of SBMLEEENNN
VariableNotValidAttributeAttribute variable not validEEEEEE
UnitsNotValidAttributeAttribute units not validEEEEEE
ConstantSpeciesNotValidAttributeAttribute constant on species not supported in SBML Level 1EENNNN
SpatialSizeUnitsNotValidAttributeAttribute spatialSizeUnits on species not supported in SBML Level 1EENNNN
SpeciesTypeNotValidAttributeAttribute speciesType on species not supported in SBML Level 1EEENNN
HasOnlySubsUnitsNotValidAttributeAttribute hasOnlySubstanceUnits on species not supported in SBML Level 1EENNNN
IdNotValidAttributeAttribute id on species references not supported in SBML Level 1EEENNN
NameNotValidAttributeAttribute name on species references not supported in SBML Level 1EEENNN
SpeciesTypeNotValidComponentSpecies types not supported in SBML Level 1EEENNN
StoichiometryMathNotValidComponentlt;stoichiometryMath> not supported in SBML Level 1EENNNN
MultiplierNotValidAttributeAttribute multiplier on units not supported in SBML Level 1EENNNN
OffsetNotValidAttributeAttribute offset on units only available in SBML Level 2 Version 1EENNNN

Enumerator Meaning
LIBSBML_CAT_SBMLGeneral error not falling into another category below.
LIBSBML_CAT_SBML_L1_COMPATCategory of errors that can only occur during attempted translation from one Level/Version of SBML to another. This particular category applies to errors encountered while trying to convert a model from SBML Level 2 to SBML Level 1.
LIBSBML_CAT_SBML_L2V1_COMPATCategory of errors that can only occur during attempted translation from one Level/Version of SBML to another. This particular category applies to errors encountered while trying to convert a model to SBML Level 2 Version 1.
LIBSBML_CAT_SBML_L2V2_COMPATCategory of errors that can only occur during attempted translation from one Level/Version of SBML to another. This particular category applies to errors encountered while trying to convert a model to SBML Level 2 Version 2.
LIBSBML_CAT_GENERAL_CONSISTENCYCategory of errors that can occur while validating general SBML constructs. With respect to the SBML specification, these concern failures in applying the validation rules numbered 2xxxx in the Level 2 Versions 2 and 3 specifications.
LIBSBML_CAT_IDENTIFIER_CONSISTENCYCategory of errors that can occur while validating symbol identifiers in a model. With respect to the SBML specification, these concern failures in applying the validation rules numbered 103xx in the Level 2 Versions 2 and 3 specifications.
LIBSBML_CAT_UNITS_CONSISTENCYCategory of errors that can occur while validating the units of measurement on quantities in a model. With respect to the SBML specification, these concern failures in applying the validation rules numbered 105xx in the Level 2 Versions 2 and 3 specifications.
LIBSBML_CAT_MATHML_CONSISTENCYCategory of errors that can occur while validating MathML formulas in a model. With respect to the SBML specification, these concern failures in applying the validation rules numbered 102xx in the Level 2 Versions 2 and 3 specifications.
LIBSBML_CAT_SBO_CONSISTENCYCategory of errors that can occur while validating SBO identifiers in a model. With respect to the SBML specification, these concern failures in applying the validation rules numbered 107xx in the Level 2 Versions 2 and 3 specifications.
LIBSBML_CAT_OVERDETERMINED_MODELError in the system of equations in the model: the system is overdetermined, therefore violating a tenet of proper SBML. With respect to the SBML specification, this is validation rule #10601 in the SBML Level 2 Versions 2 and 3 specifications.
LIBSBML_CAT_SBML_L2V3_COMPATCategory of errors that can only occur during attempted translation from one Level/Version of SBML to another. This particular category applies to errors encountered while trying to convert a model to SBML Level 2 Version 3.
LIBSBML_CAT_MODELING_PRACTICECategory of warnings about recommended good practices involving SBML and computational modeling. (These are tests performed by libSBML and do not have equivalent SBML validation rules.)
LIBSBML_CAT_INTERNAL_CONSISTENCYCategory of errors that can occur while validating libSBML's internal representation of SBML constructs. (These are tests performed by libSBML and do not have equivalent SBML validation rules.)
LIBSBML_CAT_SBML_L2V4_COMPATCategory of errors that can only occur during attempted translation from one Level/Version of SBML to another. This particular category applies to errors encountered while trying to convert a model to SBML Level 2 Version 4.

Definition at line 30815 of file libsbml.py.


Public Member Functions

def __eq__
def __init__
def __ne__
def getCategory
def getCategoryAsString
def getColumn
def getErrorId
def getLine
def getMessage
def getSeverity
def getSeverityAsString
def getShortMessage
def getStandardMessage
def isError
def isFatal
def isInfo
def isInternal
def isSystem
def isWarning
def isXML
def setColumn
def setLine

Public Attributes

 this

Member Function Documentation

def libsbml.XMLError.__eq__ (   self,
  rhs 
) [inherited]

Definition at line 30289 of file libsbml.py.

def libsbml.SBMLError.__init__ (   self,
  args 
)

Python method signature(s):

__init__(self, unsigned int errorId = 0, unsigned int level = 2, unsigned int version = 4, 
    string details = "", 
    unsigned int line = 0, unsigned int column = 0, 
    unsigned int severity = LIBSBML_SEV_ERROR, 
    unsigned int category = LIBSBML_CAT_SBML)    SBMLError
__init__(self, unsigned int errorId = 0, unsigned int level = 2, unsigned int version = 4, 
    string details = "", 
    unsigned int line = 0, unsigned int column = 0, 
    unsigned int severity = LIBSBML_SEV_ERROR)    SBMLError
__init__(self, unsigned int errorId = 0, unsigned int level = 2, unsigned int version = 4, 
    string details = "", 
    unsigned int line = 0, unsigned int column = 0)    SBMLError
__init__(self, unsigned int errorId = 0, unsigned int level = 2, unsigned int version = 4, 
    string details = "", 
    unsigned int line = 0)    SBMLError
__init__(self, unsigned int errorId = 0, unsigned int level = 2, unsigned int version = 4, 
    string details = "")    SBMLError
__init__(self, unsigned int errorId = 0, unsigned int level = 2, unsigned int version = 4)    SBMLError
__init__(self, unsigned int errorId = 0, unsigned int level = 2)    SBMLError
__init__(self, unsigned int errorId = 0)    SBMLError
__init__(self)    SBMLError
__init__(self, SBMLError orig)    SBMLError

Copy constructor; creates a copy of this SBMLError.

Reimplemented from libsbml.XMLError.

Definition at line 31377 of file libsbml.py.

def libsbml.XMLError.__ne__ (   self,
  rhs 
) [inherited]

Definition at line 30296 of file libsbml.py.

def libsbml.XMLError.getCategory (   self  )  [inherited]

Python method signature(s):

getCategory(self)    unsigned int

Returns the category of this error.

XMLError defines an enumeration of category codes for the XML layer. Applications that build on XMLError by subclassing it may add their own categories with numbers higher than those in the predefined set of category codes.

Categories can be used to partition errors into distinct groups. Among other things, this can be used to prevent id conflicts by uniquely identifying an XMLError by both id and category.

Returns:
the category of this XMLError.
See also:
getSeverity()

getCategoryAsString()

Definition at line 29979 of file libsbml.py.

def libsbml.XMLError.getCategoryAsString (   self  )  [inherited]

Python method signature(s):

getCategoryAsString(self)    string

Returns a string describing the category of this error.

XMLError defines an enumeration of category codes for the XML layer. Applications that build on XMLError by subclassing it may add their own categories with numbers higher than those in the predefined set of category codes.

Categories can be used to partition errors into distinct groups. Among other things, this can be used to prevent id conflicts by uniquely identifying an XMLError by both id and category.

Returns:
string representing the category of this XMLError.
See also:
getCategory()

getSeverityAsString()

Definition at line 30006 of file libsbml.py.

def libsbml.XMLError.getColumn (   self  )  [inherited]

Python method signature(s):

getColumn(self)    unsigned int

Returns the column number in the XML input near where the error, warning or other diagnostic occurred.

We say 'near where the problem occurred', because many factors affect how accurate the line/column information ultimately is. For example, different XML parsers have different conventions for which line and column number they report for a particular problem (which in turn makes a difference when a problem involves an opening XML tag on one line and a closing tag on another line). In some situations, some parsers report invalid line and/or column numbers altogether. If this occurs, the line and/or column number in the XMLError object will be set to the the value of the maximum unsigned long integer representable on the platform where libSBML is running. (This is equal to the constant named ULONG_MAX in C and C++.) The probability that a true line or column number in an SBML model would equal this value is vanishingly small; thus, if an application encounters these values in an XMLError object, it can assume no valid line/column number could be provided by libSBML in that situation.

Returns:
the column number
See also:
getLine()

Definition at line 29899 of file libsbml.py.

def libsbml.XMLError.getErrorId (   self  )  [inherited]

Python method signature(s):

getErrorId(self)    unsigned int

Returns the identifier of this error.

Returns:
the id of this XMLError.
See also:
getMessage()

getShortMessage()

getCategory()

getSeverity()

Definition at line 29789 of file libsbml.py.

def libsbml.XMLError.getLine (   self  )  [inherited]

Python method signature(s):

getLine(self)    unsigned int

Returns the line number in the XML input near where the error, warning or other diagnostic occurred.

We say 'near where the problem occurred', because many factors affect how accurate the line/column information ultimately is. For example, different XML parsers have different conventions for which line and column number they report for a particular problem (which in turn makes a difference when a problem involves an opening XML tag on one line and a closing tag on another line). In some situations, some parsers report invalid line and/or column numbers altogether. If this occurs, the line and/or column number in the XMLError object will be set to the the value of the maximum unsigned long integer representable on the platform where libSBML is running. (This is equal to the constant named ULONG_MAX in C and C++.) The probability that a true line or column number in an SBML model would equal this value is vanishingly small; thus, if an application encounters these values in an XMLError object, it can assume no valid line/column number could be provided by libSBML in that situation.

Returns:
the line number
See also:
getColumn()

Definition at line 29865 of file libsbml.py.

def libsbml.XMLError.getMessage (   self  )  [inherited]

Python method signature(s):

getMessage(self)    string

Returns the message text of this error.

The message associated with an error object describes the nature of the problem. The message returned by this method is generally longer and clearer than the message returned by XMLError.getShortMessage(), but not in all cases.

Callers may use XMLError.getCategory() and XMLError.getSeverity() to obtain additional information about the nature and severity of the problem.

Returns:
the message text
See also:
getErrorId()

getShortMessage()

getCategory()

getSeverity()

Definition at line 29809 of file libsbml.py.

def libsbml.XMLError.getSeverity (   self  )  [inherited]

Python method signature(s):

getSeverity(self)    unsigned int

Returns the severity of this error.

XMLError defines an enumeration of severity codes for the XML layer. Applications that build on XMLError by subclassing it may add their own severity codes with numbers higher than those in the predefined set of severity codes.

Returns:
the severity of this XMLError.
See also:
getSeverityAsString()

getCategory()

Definition at line 29933 of file libsbml.py.

def libsbml.XMLError.getSeverityAsString (   self  )  [inherited]

Python method signature(s):

getSeverityAsString(self)    string

Returns a string describing the severity level of this error.

XMLError defines an enumeration of severity codes for the XML layer. Applications that build on XMLError by subclassing it may add their own severity codes with numbers higher than those in the predefined set of severity codes.

Returns:
string representing the severity of this XMLError.
See also:
getSeverity()

getCategoryAsString()

Definition at line 29956 of file libsbml.py.

def libsbml.XMLError.getShortMessage (   self  )  [inherited]

Python method signature(s):

getShortMessage(self)    string

Returns a brief message for this error.

This is an alternative error message that, in general, is as short as the authors could make it. However, brevity is often inversely proportional to clarity, so this short message may not be sufficiently informative to understand the nature of the error. Calling applications may wish to check XMLError.getMessage() in addition or instead.

Returns:
the short error message text
See also:
getErrorId()

getMessage()

getCategory()

getSeverity()

Definition at line 29838 of file libsbml.py.

def libsbml.XMLError.getStandardMessage (   args  )  [inherited]

Python method signature(s):

getStandardMessage(int code)    string

Returns a copy of the message string associated with the given predefined XMLError code.

Parameters:
code the error code whose message is sought; it must be a predefined value from

Definition at line 30267 of file libsbml.py.

def libsbml.XMLError.isError (   self  )  [inherited]

Python method signature(s):

isError(self)    bool

Predicate returning true or false depending on whether this error is a significant error.

This is equivalent to obtaining the severity code from an XMLError object (via XMLError.getSeverity()) and then comparing it to the value LIBSBML_SEV_ERROR from the

Returns:
true if this error is an error, false otherwise.
See also:
isInfo()

isWarning()

isFatal()

Definition at line 30088 of file libsbml.py.

def libsbml.XMLError.isFatal (   self  )  [inherited]

Python method signature(s):

isFatal(self)    bool

Predicate returning true or false depending on whether this error is a fatal run-time error.

This is equivalent to obtaining the severity code from an XMLError object (via XMLError.getSeverity()) and then comparing it to the value LIBSBML_SEV_FATAL from the

Returns:
true if this error is a fatal error, false otherwise.
See also:
isInfo()

isWarning()

isError()

Definition at line 30115 of file libsbml.py.

def libsbml.XMLError.isInfo (   self  )  [inherited]

Python method signature(s):

isInfo(self)    bool

Predicate returning true or false depending on whether this error object is for information purposes only.

This is equivalent to obtaining the severity code from an XMLError object (via XMLError.getSeverity()) and then comparing it to the value LIBSBML_SEV_INFO from the

Returns:
true if this XMLError is for informational purposes only, false otherwise.
See also:
isWarning()

isError()

isFatal()

Definition at line 30033 of file libsbml.py.

def libsbml.XMLError.isInternal (   self  )  [inherited]

Python method signature(s):

isInternal(self)    bool

Predicate returning true or false depending on whether this error resulted from an internal program error.

This is equivalent to obtaining the category identifier from an XMLError object (via XMLError.getCategory()) and then comparing it to the value LIBSBML_CAT_INTERNAL from the

Returns:
true or false
See also:
isSystem()

isXML()

Definition at line 30142 of file libsbml.py.

def libsbml.XMLError.isSystem (   self  )  [inherited]

Python method signature(s):

isSystem(self)    bool

Predicate returning true or false depending on whether this error was generated by the operating system.

This is equivalent to obtaining the category identifier from an XMLError object (via XMLError.getCategory()) and then comparing it to the value LIBSBML_CAT_SYSTEM from the

Returns:
true or false
See also:
isInternal()

isXML()

Definition at line 30168 of file libsbml.py.

def libsbml.XMLError.isWarning (   self  )  [inherited]

Python method signature(s):

isWarning(self)    bool

Predicate returning true or false depending on whether this error object is a warning.

This is equivalent to obtaining the severity code from an XMLError object (via XMLError.getSeverity()) and then comparing it to the value LIBSBML_SEV_WARNING from the

Returns:
true if this error is a warning, false otherwise.
See also:
isInfo()

isError()

isFatal()

Definition at line 30061 of file libsbml.py.

def libsbml.XMLError.isXML (   self  )  [inherited]

Python method signature(s):

isXML(self)    bool

Predicate returning true or false depending on whether this error resulted from a problem in the XML input (e.g., an XML syntax error).

This is equivalent to obtaining the category identifier from an XMLError object (via XMLError.getCategory()) and then comparing it to the value LIBSBML_CAT_XML from the

Returns:
true or false
See also:
isInternal()

isSystem()

Definition at line 30194 of file libsbml.py.

def libsbml.XMLError.setColumn (   self,
  args 
) [inherited]

Python method signature(s):

setColumn(self, unsigned int column)    int

Sets the column number where this error occurred.

Parameters:
column an unsigned int, the column number to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
See also:
setLine(unsigned int line)

Definition at line 30244 of file libsbml.py.

def libsbml.XMLError.setLine (   self,
  args 
) [inherited]

Python method signature(s):

setLine(self, unsigned int line)    int

Sets the line number where this error occurred.

Parameters:
line an unsigned int, the line number to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
See also:
setColumn(unsigned int column)

Definition at line 30221 of file libsbml.py.


Member Data Documentation

Reimplemented from libsbml.XMLError.

Definition at line 31411 of file libsbml.py.




HTML documentation generated on Thu Jan 21 16:56:19 2010 using Doxygen 1.5.8.