libSBML C++ API  5.18.0
SBMLError.h File Reference

Represents SBML errors and other diagnostics. More...

Include dependency graph for SBMLError.h:
This graph shows which files directly or indirectly include this file:

Classes

class  SBMLError
  An error, warning or other diagnostic. More...
 

Enumerations

enum  SBMLErrorCategory_t {
  LIBSBML_CAT_SBML = (LIBSBML_CAT_XML + 1),
  LIBSBML_CAT_SBML_L1_COMPAT,
  LIBSBML_CAT_SBML_L2V1_COMPAT,
  LIBSBML_CAT_SBML_L2V2_COMPAT,
  LIBSBML_CAT_GENERAL_CONSISTENCY,
  LIBSBML_CAT_IDENTIFIER_CONSISTENCY,
  LIBSBML_CAT_UNITS_CONSISTENCY,
  LIBSBML_CAT_MATHML_CONSISTENCY,
  LIBSBML_CAT_SBO_CONSISTENCY,
  LIBSBML_CAT_OVERDETERMINED_MODEL,
  LIBSBML_CAT_SBML_L2V3_COMPAT,
  LIBSBML_CAT_MODELING_PRACTICE,
  LIBSBML_CAT_INTERNAL_CONSISTENCY,
  LIBSBML_CAT_SBML_L2V4_COMPAT,
  LIBSBML_CAT_SBML_L3V1_COMPAT,
  LIBSBML_CAT_SBML_L3V2_COMPAT,
  LIBSBML_CAT_SBML_COMPATIBILITY
}
 Category codes for SBMLError diagnostics. More...
 
enum  SBMLErrorCode_t {
  UnknownError = 10000,
  NotUTF8 = 10101,
  UnrecognizedElement = 10102,
  NotSchemaConformant = 10103,
  L3NotSchemaConformant = 10104,
  InvalidMathElement = 10201,
  DisallowedMathMLSymbol = 10202,
  DisallowedMathMLEncodingUse = 10203,
  DisallowedDefinitionURLUse = 10204,
  BadCsymbolDefinitionURLValue = 10205,
  DisallowedMathTypeAttributeUse = 10206,
  DisallowedMathTypeAttributeValue = 10207,
  LambdaOnlyAllowedInFunctionDef = 10208,
  BooleanOpsNeedBooleanArgs = 10209,
  NumericOpsNeedNumericArgs = 10210,
  ArgsToEqNeedSameType = 10211,
  PiecewiseNeedsConsistentTypes = 10212,
  PieceNeedsBoolean = 10213,
  ApplyCiMustBeUserFunction = 10214,
  ApplyCiMustBeModelComponent = 10215,
  KineticLawParametersAreLocalOnly = 10216,
  MathResultMustBeNumeric = 10217,
  OpsNeedCorrectNumberOfArgs = 10218,
  InvalidNoArgsPassedToFunctionDef = 10219,
  DisallowedMathUnitsUse = 10220,
  InvalidUnitsValue = 10221,
  CiCannotReference0DCompartment = 10222,
  RateOfTargetMustBeCi = 10223,
  RateOfTargetCannotBeAssigned = 10224,
  RateOfSpeciesTargetCompartmentNot = 10225,
  DuplicateComponentId = 10301,
  DuplicateUnitDefinitionId = 10302,
  DuplicateLocalParameterId = 10303,
  MultipleAssignmentOrRateRules = 10304,
  MultipleEventAssignmentsForId = 10305,
  EventAndAssignmentRuleForId = 10306,
  DuplicateMetaId = 10307,
  InvalidSBOTermSyntax = 10308,
  InvalidMetaidSyntax = 10309,
  InvalidIdSyntax = 10310,
  InvalidUnitIdSyntax = 10311,
  InvalidNameSyntax = 10312,
  DanglingUnitReference = 10313,
  MissingAnnotationNamespace = 10401,
  DuplicateAnnotationNamespaces = 10402,
  SBMLNamespaceInAnnotation = 10403,
  MultipleAnnotations = 10404,
  InconsistentArgUnits = 10501,
  InconsistentKineticLawUnitsL3 = 10503,
  AssignRuleCompartmentMismatch = 10511,
  AssignRuleSpeciesMismatch = 10512,
  AssignRuleParameterMismatch = 10513,
  AssignRuleStoichiometryMismatch = 10514,
  InitAssignCompartmenMismatch = 10521,
  InitAssignSpeciesMismatch = 10522,
  InitAssignParameterMismatch = 10523,
  InitAssignStoichiometryMismatch = 10524,
  RateRuleCompartmentMismatch = 10531,
  RateRuleSpeciesMismatch = 10532,
  RateRuleParameterMismatch = 10533,
  RateRuleStoichiometryMismatch = 10534,
  KineticLawNotSubstancePerTime = 10541,
  SpeciesInvalidExtentUnits = 10542,
  DelayUnitsNotTime = 10551,
  EventAssignCompartmentMismatch = 10561,
  EventAssignSpeciesMismatch = 10562,
  EventAssignParameterMismatch = 10563,
  EventAssignStoichiometryMismatch = 10564,
  PriorityUnitsNotDimensionless = 10565,
  UpperUnitBound = 10599,
  OverdeterminedSystem = 10601,
  InvalidModelSBOTerm = 10701,
  InvalidFunctionDefSBOTerm = 10702,
  InvalidParameterSBOTerm = 10703,
  InvalidInitAssignSBOTerm = 10704,
  InvalidRuleSBOTerm = 10705,
  InvalidConstraintSBOTerm = 10706,
  InvalidReactionSBOTerm = 10707,
  InvalidSpeciesReferenceSBOTerm = 10708,
  InvalidKineticLawSBOTerm = 10709,
  InvalidEventSBOTerm = 10710,
  InvalidEventAssignmentSBOTerm = 10711,
  InvalidCompartmentSBOTerm = 10712,
  InvalidSpeciesSBOTerm = 10713,
  InvalidCompartmentTypeSBOTerm = 10714,
  InvalidSpeciesTypeSBOTerm = 10715,
  InvalidTriggerSBOTerm = 10716,
  InvalidDelaySBOTerm = 10717,
  InvalidLocalParameterSBOTerm = 10718,
  InvalidSBMLElementSBOTerm = 10719,
  NotesNotInXHTMLNamespace = 10801,
  NotesContainsXMLDecl = 10802,
  NotesContainsDOCTYPE = 10803,
  InvalidNotesContent = 10804,
  OnlyOneNotesElementAllowed = 10805,
  InvalidNamespaceOnSBML = 20101,
  MissingOrInconsistentLevel = 20102,
  MissingOrInconsistentVersion = 20103,
  PackageNSMustMatch = 20104,
  LevelPositiveInteger = 20105,
  VersionPositiveInteger = 20106,
  AllowedAttributesOnSBML = 20108,
  L3PackageOnLowerSBML = 20109,
  MissingModel = 20201,
  IncorrectOrderInModel = 20202,
  EmptyListElement = 20203,
  NeedCompartmentIfHaveSpecies = 20204,
  OneOfEachListOf = 20205,
  OnlyFuncDefsInListOfFuncDefs = 20206,
  OnlyUnitDefsInListOfUnitDefs = 20207,
  OnlyCompartmentsInListOfCompartments = 20208,
  OnlySpeciesInListOfSpecies = 20209,
  OnlyParametersInListOfParameters = 20210,
  OnlyInitAssignsInListOfInitAssigns = 20211,
  OnlyRulesInListOfRules = 20212,
  OnlyConstraintsInListOfConstraints = 20213,
  OnlyReactionsInListOfReactions = 20214,
  OnlyEventsInListOfEvents = 20215,
  L3ConversionFactorOnModel = 20216,
  L3TimeUnitsOnModel = 20217,
  L3VolumeUnitsOnModel = 20218,
  L3AreaUnitsOnModel = 20219,
  L3LengthUnitsOnModel = 20220,
  L3ExtentUnitsOnModel = 20221,
  AllowedAttributesOnModel = 20222,
  AllowedAttributesOnListOfFuncs = 20223,
  AllowedAttributesOnListOfUnitDefs = 20224,
  AllowedAttributesOnListOfComps = 20225,
  AllowedAttributesOnListOfSpecies = 20226,
  AllowedAttributesOnListOfParams = 20227,
  AllowedAttributesOnListOfInitAssign = 20228,
  AllowedAttributesOnListOfRules = 20229,
  AllowedAttributesOnListOfConstraints = 20230,
  AllowedAttributesOnListOfReactions = 20231,
  AllowedAttributesOnListOfEvents = 20232,
  L3V2SubstanceUnitsOnModel = 20233,
  FunctionDefMathNotLambda = 20301,
  InvalidApplyCiInLambda = 20302,
  RecursiveFunctionDefinition = 20303,
  InvalidCiInLambda = 20304,
  InvalidFunctionDefReturnType = 20305,
  OneMathElementPerFunc = 20306,
  AllowedAttributesOnFunc = 20307,
  OnlyCiInsideBVar = 99304,
  InvalidUnitDefId = 20401,
  InvalidSubstanceRedefinition = 20402,
  InvalidLengthRedefinition = 20403,
  InvalidAreaRedefinition = 20404,
  InvalidTimeRedefinition = 20405,
  InvalidVolumeRedefinition = 20406,
  VolumeLitreDefExponentNotOne = 20407,
  VolumeMetreDefExponentNot3 = 20408,
  EmptyListOfUnits = 20409,
  InvalidUnitKind = 20410,
  OffsetNoLongerValid = 20411,
  CelsiusNoLongerValid = 20412,
  EmptyUnitListElement = 20413,
  OneListOfUnitsPerUnitDef = 20414,
  OnlyUnitsInListOfUnits = 20415,
  AllowedAttributesOnUnitDefinition = 20419,
  AllowedAttributesOnListOfUnits = 20420,
  AllowedAttributesOnUnit = 20421,
  ZeroDimensionalCompartmentSize = 20501,
  ZeroDimensionalCompartmentUnits = 20502,
  ZeroDimensionalCompartmentConst = 20503,
  UndefinedOutsideCompartment = 20504,
  RecursiveCompartmentContainment = 20505,
  ZeroDCompartmentContainment = 20506,
  Invalid1DCompartmentUnits = 20507,
  Invalid2DCompartmentUnits = 20508,
  Invalid3DCompartmentUnits = 20509,
  InvalidCompartmentTypeRef = 20510,
  OneDimensionalCompartmentUnits = 20511,
  TwoDimensionalCompartmentUnits = 20512,
  ThreeDimensionalCompartmentUnits = 20513,
  AllowedAttributesOnCompartment = 20517,
  NoUnitsOnCompartment = 20518,
  InvalidSpeciesCompartmentRef = 20601,
  HasOnlySubsNoSpatialUnits = 20602,
  NoSpatialUnitsInZeroD = 20603,
  NoConcentrationInZeroD = 20604,
  SpatialUnitsInOneD = 20605,
  SpatialUnitsInTwoD = 20606,
  SpatialUnitsInThreeD = 20607,
  InvalidSpeciesSusbstanceUnits = 20608,
  BothAmountAndConcentrationSet = 20609,
  NonBoundarySpeciesAssignedAndUsed = 20610,
  NonConstantSpeciesUsed = 20611,
  InvalidSpeciesTypeRef = 20612,
  MultSpeciesSameTypeInCompartment = 20613,
  MissingSpeciesCompartment = 20614,
  SpatialSizeUnitsRemoved = 20615,
  SubstanceUnitsOnSpecies = 20616,
  ConversionFactorOnSpecies = 20617,
  AllowedAttributesOnSpecies = 20623,
  InvalidParameterUnits = 20701,
  ParameterUnits = 20702,
  ConversionFactorMustConstant = 20705,
  AllowedAttributesOnParameter = 20706,
  InvalidInitAssignSymbol = 20801,
  MultipleInitAssignments = 20802,
  InitAssignmentAndRuleForSameId = 20803,
  OneMathElementPerInitialAssign = 20804,
  AllowedAttributesOnInitialAssign = 20805,
  InitAssignmentCannotRef0DComp = 20806,
  InvalidAssignRuleVariable = 20901,
  InvalidRateRuleVariable = 20902,
  AssignmentToConstantEntity = 20903,
  RateRuleForConstantEntity = 20904,
  RepeatedRule10304 = 20905,
  CircularRuleDependency = 20906,
  OneMathElementPerRule = 20907,
  AllowedAttributesOnAssignRule = 20908,
  AllowedAttributesOnRateRule = 20909,
  AllowedAttributesOnAlgRule = 20910,
  RuleCannotRef0DComp = 20911,
  CircularDependencyRateOf = 20912,
  ConstraintMathNotBoolean = 21001,
  IncorrectOrderInConstraint = 21002,
  ConstraintNotInXHTMLNamespace = 21003,
  ConstraintContainsXMLDecl = 21004,
  ConstraintContainsDOCTYPE = 21005,
  InvalidConstraintContent = 21006,
  OneMathElementPerConstraint = 21007,
  OneMessageElementPerConstraint = 21008,
  AllowedAttributesOnConstraint = 21009,
  NoReactantsOrProducts = 21101,
  IncorrectOrderInReaction = 21102,
  EmptyListInReaction = 21103,
  InvalidReactantsProductsList = 21104,
  InvalidModifiersList = 21105,
  OneSubElementPerReaction = 21106,
  CompartmentOnReaction = 21107,
  AllowedAttributesOnReaction = 21110,
  InvalidSpeciesReference = 21111,
  RepeatedRule20611 = 21112,
  BothStoichiometryAndMath = 21113,
  AllowedAttributesOnSpeciesReference = 21116,
  AllowedAttributesOnModifier = 21117,
  UndeclaredSpeciesRef = 21121,
  IncorrectOrderInKineticLaw = 21122,
  EmptyListInKineticLaw = 21123,
  NonConstantLocalParameter = 21124,
  SubsUnitsNoLongerValid = 21125,
  TimeUnitsNoLongerValid = 21126,
  OneListOfPerKineticLaw = 21127,
  OnlyLocalParamsInListOfLocalParams = 21128,
  AllowedAttributesOnListOfLocalParam = 21129,
  OneMathPerKineticLaw = 21130,
  UndeclaredSpeciesInStoichMath = 21131,
  AllowedAttributesOnKineticLaw = 21132,
  AllowedAttributesOnListOfSpeciesRef = 21150,
  AllowedAttributesOnListOfMods = 21151,
  L3V2FastDeprecated = 21152,
  AllowedAttributesOnLocalParameter = 21172,
  LocalParameterShadowsSpecies = 21173,
  MissingTriggerInEvent = 21201,
  TriggerMathNotBoolean = 21202,
  MissingEventAssignment = 21203,
  TimeUnitsEvent = 21204,
  IncorrectOrderInEvent = 21205,
  ValuesFromTriggerTimeNeedDelay = 21206,
  DelayNeedsValuesFromTriggerTime = 21207,
  OneMathPerTrigger = 21209,
  OneMathPerDelay = 21210,
  InvalidEventAssignmentVariable = 21211,
  EventAssignmentForConstantEntity = 21212,
  OneMathPerEventAssignment = 21213,
  AllowedAttributesOnEventAssignment = 21214,
  OnlyOneDelayPerEvent = 21221,
  OneListOfEventAssignmentsPerEvent = 21222,
  OnlyEventAssignInListOfEventAssign = 21223,
  AllowedAttributesOnListOfEventAssign = 21224,
  AllowedAttributesOnEvent = 21225,
  AllowedAttributesOnTrigger = 21226,
  AllowedAttributesOnDelay = 21227,
  PersistentNotBoolean = 21228,
  InitialValueNotBoolean = 21229,
  OnlyOnePriorityPerEvent = 21230,
  OneMathPerPriority = 21231,
  AllowedAttributesOnPriority = 21232,
  GeneralWarningNotSpecified = 29999,
  CompartmentShouldHaveSize = 80501,
  SpeciesShouldHaveValue = 80601,
  ParameterShouldHaveUnits = 80701,
  ParameterShouldHaveValue = 80702,
  LocalParameterShadowsId = 81121,
  LibSBMLAdditionalCodesLowerBound = 90000,
  CannotConvertToL1V1 = 90001,
  NoEventsInL1 = 91001,
  NoFunctionDefinitionsInL1 = 91002,
  NoConstraintsInL1 = 91003,
  NoInitialAssignmentsInL1 = 91004,
  NoSpeciesTypesInL1 = 91005,
  NoCompartmentTypeInL1 = 91006,
  NoNon3DCompartmentsInL1 = 91007,
  NoFancyStoichiometryMathInL1 = 91008,
  NoNonIntegerStoichiometryInL1 = 91009,
  NoUnitMultipliersOrOffsetsInL1 = 91010,
  SpeciesCompartmentRequiredInL1 = 91011,
  NoSpeciesSpatialSizeUnitsInL1 = 91012,
  NoSBOTermsInL1 = 91013,
  StrictUnitsRequiredInL1 = 91014,
  ConversionFactorNotInL1 = 91015,
  CompartmentNotOnL1Reaction = 91016,
  ExtentUnitsNotSubstance = 91017,
  GlobalUnitsNotDeclared = 91018,
  HasOnlySubstanceUnitsNotinL1 = 91019,
  AvogadroNotSupported = 91020,
  NoConstraintsInL2v1 = 92001,
  NoInitialAssignmentsInL2v1 = 92002,
  NoSpeciesTypeInL2v1 = 92003,
  NoCompartmentTypeInL2v1 = 92004,
  NoSBOTermsInL2v1 = 92005,
  NoIdOnSpeciesReferenceInL2v1 = 92006,
  NoDelayedEventAssignmentInL2v1 = 92007,
  StrictUnitsRequiredInL2v1 = 92008,
  IntegerSpatialDimensions = 92009,
  StoichiometryMathNotYetSupported = 92010,
  PriorityLostFromL3 = 92011,
  NonPersistentNotSupported = 92012,
  InitialValueFalseEventNotSupported = 92013,
  SBOTermNotUniversalInL2v2 = 93001,
  NoUnitOffsetInL2v2 = 93002,
  NoKineticLawTimeUnitsInL2v2 = 93003,
  NoKineticLawSubstanceUnitsInL2v2 = 93004,
  NoDelayedEventAssignmentInL2v2 = 93005,
  ModelSBOBranchChangedBeyondL2v2 = 93006,
  StrictUnitsRequiredInL2v2 = 93007,
  StrictSBORequiredInL2v2 = 93008,
  DuplicateAnnotationInvalidInL2v2 = 93009,
  NoUnitOffsetInL2v3 = 94001,
  NoKineticLawTimeUnitsInL2v3 = 94002,
  NoKineticLawSubstanceUnitsInL2v3 = 94003,
  NoSpeciesSpatialSizeUnitsInL2v3 = 94004,
  NoEventTimeUnitsInL2v3 = 94005,
  NoDelayedEventAssignmentInL2v3 = 94006,
  ModelSBOBranchChangedBeyondL2v3 = 94007,
  StrictUnitsRequiredInL2v3 = 94008,
  StrictSBORequiredInL2v3 = 94009,
  DuplicateAnnotationInvalidInL2v3 = 94010,
  NoUnitOffsetInL2v4 = 95001,
  NoKineticLawTimeUnitsInL2v4 = 95002,
  NoKineticLawSubstanceUnitsInL2v4 = 95003,
  NoSpeciesSpatialSizeUnitsInL2v4 = 95004,
  NoEventTimeUnitsInL2v4 = 95005,
  ModelSBOBranchChangedInL2v4 = 95006,
  DuplicateAnnotationInvalidInL2v4 = 95007,
  NoSpeciesTypeInL3v1 = 96001,
  NoCompartmentTypeInL3v1 = 96002,
  NoUnitOffsetInL3v1 = 96003,
  NoKineticLawTimeUnitsInL3v1 = 96004,
  NoKineticLawSubstanceUnitsInL3v1 = 96005,
  NoSpeciesSpatialSizeUnitsInL3v1 = 96006,
  NoEventTimeUnitsInL3v1 = 96007,
  ModelSBOBranchChangedInL3v1 = 96008,
  DuplicateAnnotationInvalidInL3v1 = 96009,
  NoCompartmentOutsideInL3v1 = 96010,
  NoStoichiometryMathInL3v1 = 96011,
  DoubleExponentNotSupported = 98001,
  MathMLElementNotSupported = 98002,
  EmptyListOfElementNotSupported = 98003,
  MissingMathElementNotSupported = 98004,
  MissingTriggerElementNotSupported = 98005,
  BooleanNumericDiscrepancy = 98006,
  IdNameSBaseInL3V2 = 98007,
  MissingParticipantsNotSupported = 98008,
  ConvertibleMathInitialAssignment = 98009,
  FastReactionsNotSupported = 98010,
  SpeciesRefIdInMathMLNotSupported = 98011,
  InvalidSBMLLevelVersion = 99101,
  InvalidPackageLevelVersion = 99102,
  AnnotationNotesNotAllowedLevel1 = 99104,
  InvalidRuleOrdering = 99106,
  RequiredPackagePresent = 99107,
  UnrequiredPackagePresent = 99108,
  PackageRequiredShouldBeFalse = 99109,
  SubsUnitsAllowedInKL = 99127,
  TimeUnitsAllowedInKL = 99128,
  FormulaInLevel1KL = 99129,
  L3SubstanceUnitsOnModel = 99130,
  StoichiometryMathMissingMath = 99131,
  TimeUnitsRemoved = 99206,
  BadMathML = 99219,
  FailedMathMLReadOfDouble = 99220,
  FailedMathMLReadOfInteger = 99221,
  FailedMathMLReadOfExponential = 99222,
  FailedMathMLReadOfRational = 99223,
  BadMathMLNodeType = 99224,
  InvalidMathMLAttribute = 99225,
  NoTimeSymbolInFunctionDef = 99301,
  NoBodyInFunctionDef = 99302,
  DanglingUnitSIdRef = 99303,
  RDFMissingAboutTag = 99401,
  RDFEmptyAboutTag = 99402,
  RDFAboutTagNotMetaid = 99403,
  RDFNotCompleteModelHistory = 99404,
  RDFNotModelHistory = 99405,
  AnnotationNotElement = 99406,
  NestedAnnotationNotAllowed = 99407,
  InconsistentArgUnitsWarnings = 99502,
  InconsistentPowerUnitsWarnings = 99503,
  InconsistentExponUnitsWarnings = 99504,
  UndeclaredUnits = 99505,
  UndeclaredTimeUnitsL3 = 99506,
  UndeclaredExtentUnitsL3 = 99507,
  UndeclaredObjectUnitsL3 = 99508,
  CannotVerifyUnitsObjectNoMath = 99509,
  UnrecognisedSBOTerm = 99701,
  ObseleteSBOTerm = 99702,
  IncorrectCompartmentSpatialDimensions = 99901,
  CompartmentTypeNotValidAttribute = 99902,
  ConstantNotValidAttribute = 99903,
  MetaIdNotValidAttribute = 99904,
  SBOTermNotValidAttributeBeforeL2V3 = 99905,
  InvalidL1CompartmentUnits = 99906,
  L1V1CompartmentVolumeReqd = 99907,
  CompartmentTypeNotValidComponent = 99908,
  ConstraintNotValidComponent = 99909,
  EventNotValidComponent = 99910,
  SBOTermNotValidAttributeBeforeL2V2 = 99911,
  FuncDefNotValidComponent = 99912,
  InitialAssignNotValidComponent = 99913,
  VariableNotValidAttribute = 99914,
  UnitsNotValidAttribute = 99915,
  ConstantSpeciesNotValidAttribute = 99916,
  SpatialSizeUnitsNotValidAttribute = 99917,
  SpeciesTypeNotValidAttribute = 99918,
  HasOnlySubsUnitsNotValidAttribute = 99919,
  IdNotValidAttribute = 99920,
  NameNotValidAttribute = 99921,
  SpeciesTypeNotValidComponent = 99922,
  StoichiometryMathNotValidComponent = 99923,
  MultiplierNotValidAttribute = 99924,
  OffsetNotValidAttribute = 99925,
  L3SpatialDimensionsUnset = 99926,
  OperationInterrupted = 99950,
  UnknownCoreAttribute = 99994,
  UnknownPackageAttribute = 99995,
  PackageConversionNotSupported = 99996,
  InvalidTargetLevelVersion = 99997,
  L3NotSupported = 99998,
  SBMLCodesUpperBound = 99999
}
 Codes for all SBML-level errors and warnings from the core specification. More...
 
enum  SBMLErrorSeverity_t
 Severity codes for SBMLError diagnostics. More...
 

Detailed Description

Represents SBML errors and other diagnostics.

Author
Michael Hucka
Sarah Keating

Enumeration Type Documentation

Category codes for SBMLError diagnostics.

Note that these are distinct from XMLError's category codes. User programs receiving an SBMLError object can use this distinction to check whether the error represents a low-level XML problem or an SBML problem.

See also
XMLErrorCategory_t
Enumerator
LIBSBML_CAT_SBML 

General SBML error not falling into another category below.

LIBSBML_CAT_SBML_L1_COMPAT 

Category 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_COMPAT 

Category 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_COMPAT 

Category 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_CONSISTENCY 

Category 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–4 and Level 3 Versions 1–2 specifications.

LIBSBML_CAT_IDENTIFIER_CONSISTENCY 

Category 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–4 and Level 3 Versions 1–2 specifications.

LIBSBML_CAT_UNITS_CONSISTENCY 

Category 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–4 and Level 3 Versions 1–2 specifications.

LIBSBML_CAT_MATHML_CONSISTENCY 

Category 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–4 and Level 3 Versions 1–2 specifications.

LIBSBML_CAT_SBO_CONSISTENCY 

Category 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–4 and Level 3 Versions 1–2 specifications.

LIBSBML_CAT_OVERDETERMINED_MODEL 

Error 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–4 and Level 3 Versions 1–2 specifications.

LIBSBML_CAT_SBML_L2V3_COMPAT 

Category 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_PRACTICE 

Category 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_CONSISTENCY 

Category 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_COMPAT 

Category 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.

LIBSBML_CAT_SBML_L3V1_COMPAT 

Category 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 3 Version 1.

LIBSBML_CAT_SBML_L3V2_COMPAT 

Category 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 3 Version 1.

LIBSBML_CAT_SBML_COMPATIBILITY 

Category of errors that can only occur during attempted translation from one Level/Version of SBML to another.

Codes for all SBML-level errors and warnings from the core specification.

Calling programs may wish to check which enumeration a given SBMLError object's error identifier is actually from:
  • 0010000 to 0099999: SBMLErrorCode_t (a problem with the SBML core specification)
  • 1000000 to 1099999: CompSBMLErrorCode_t (a problem with the SBML Level 3 Hierarchical Model Composition package specification).
  • 2000000 to 2099999: FbcSBMLErrorCode_t (a problem with the SBML Level 3 Flux Balance Constraints package specification).
  • 3000000 to 3099999: QualSBMLErrorCode_t (a problem with the SBML Level 3 Qualitative Models package specification).
  • 6000000 to 6099999: LayoutSBMLErrorCode_t (a problem with the SBML Level 3 Layout package specification).
Other error code ranges are reserved for other packages.
Enumerator
UnknownError 

Encountered unknown internal libSBML error.

NotUTF8 

File does not use UTF-8 encoding.

UnrecognizedElement 

Encountered unrecognized element.

NotSchemaConformant 

Document does not conform to the SBML XML schema.

L3NotSchemaConformant 

Document is not well-formed XML.

InvalidMathElement 

Invalid MathML.

DisallowedMathMLSymbol 

Disallowed MathML symbol found.

DisallowedMathMLEncodingUse 

Use of the MathML 'encoding' attribute is not allowed on this element.

DisallowedDefinitionURLUse 

Use of the MathML 'definitionURL' attribute is not allowed on this element.

BadCsymbolDefinitionURLValue 

Invalid <csymbol> 'definitionURL' attribute value.

DisallowedMathTypeAttributeUse 

Use of the MathML 'type' attribute is not allowed on this element.

DisallowedMathTypeAttributeValue 

Disallowed MathML 'type' attribute value.

LambdaOnlyAllowedInFunctionDef 

Use of <lambda> not permitted outside of FunctionDefinition objects.

BooleanOpsNeedBooleanArgs 

Non-Boolean argument given to Boolean operator.

NumericOpsNeedNumericArgs 

Non-numerical argument given to numerical operator.

ArgsToEqNeedSameType 

Arguments to <eq> and <neq> must have the same data types.

PiecewiseNeedsConsistentTypes 

Terms in a <piecewise> expression must have consistent data types.

PieceNeedsBoolean 

The second argument of a <piece> expression must yield a Boolean value.

ApplyCiMustBeUserFunction 

A <ci> element in this context must refer to a function definition.

ApplyCiMustBeModelComponent 

A <ci> element in this context must refer to a model component.

KineticLawParametersAreLocalOnly 

Cannot use a KineticLaw local parameter outside of its local scope.

MathResultMustBeNumeric 

A formula's result in this context must be a numerical value.

OpsNeedCorrectNumberOfArgs 

Incorrect number of arguments given to MathML operator.

InvalidNoArgsPassedToFunctionDef 

Incorrect number of arguments given to function invocation.

DisallowedMathUnitsUse 

Attribute 'units' is only permitted on <cn> elements.

InvalidUnitsValue 

Invalid value given for the 'units' attribute.

CiCannotReference0DCompartment 

A <ci> element cannot reference a 0D compartment.

RateOfTargetMustBeCi 

A 'rateOf' <csymbol> must target only a single <ci> element.

RateOfTargetCannotBeAssigned 

The target of a 'rateOf' <csymbol> cannot be assigned.

RateOfSpeciesTargetCompartmentNot 

Compartments of non-substance <species> referenced by 'rateOf' must not vary.

DuplicateComponentId 

Duplicate 'id' attribute value.

DuplicateUnitDefinitionId 

Duplicate unit definition 'id' attribute value.

DuplicateLocalParameterId 

Duplicate local parameter 'id' attribute value.

MultipleAssignmentOrRateRules 

Multiple rules for the same variable are not allowed.

MultipleEventAssignmentsForId 

Multiple event assignments for the same variable are not allowed.

EventAndAssignmentRuleForId 

An event assignment and an assignment rule must not have the same value for 'variable'.

DuplicateMetaId 

Duplicate 'metaid' attribute value.

InvalidSBOTermSyntax 

Invalid syntax for an 'sboTerm' attribute value.

InvalidMetaidSyntax 

Invalid syntax for a 'metaid' attribute value.

InvalidIdSyntax 

Invalid syntax for an 'id' attribute value.

InvalidUnitIdSyntax 

Invalid syntax for the identifier of a unit.

InvalidNameSyntax 

Invalid syntax for a 'name' attribute value.

DanglingUnitReference 

Dangling reference to a unit.

MissingAnnotationNamespace 

Missing declaration of the XML namespace for the annotation.

DuplicateAnnotationNamespaces 

Multiple annotations using the same XML namespace.

SBMLNamespaceInAnnotation 

The SBML XML namespace cannot be used in an Annotation object.

MultipleAnnotations 

Only one Annotation object is permitted under a given SBML object.

InconsistentArgUnits 

The units of the function call's arguments are not consistent with its definition.

InconsistentKineticLawUnitsL3 

The kinetic law's units are inconsistent with those of other kinetic laws in the model.

AssignRuleCompartmentMismatch 

Mismatched units in assignment rule for compartment.

AssignRuleSpeciesMismatch 

Mismatched units in assignment rule for species.

AssignRuleParameterMismatch 

Mismatched units in assignment rule for parameter.

AssignRuleStoichiometryMismatch 

Mismatched units in assignment rule for stoichiometry.

InitAssignCompartmenMismatch 

Mismatched units in initial assignment to compartment.

InitAssignSpeciesMismatch 

Mismatched units in initial assignment to species.

InitAssignParameterMismatch 

Mismatched units in initial assignment to parameter.

InitAssignStoichiometryMismatch 

Mismatched units in initial assignment to stoichiometry.

RateRuleCompartmentMismatch 

Mismatched units in rate rule for compartment.

RateRuleSpeciesMismatch 

Mismatched units in rate rule for species.

RateRuleParameterMismatch 

Mismatched units in rate rule for parameter.

RateRuleStoichiometryMismatch 

Mismatched units in rate rule for stoichiometry.

KineticLawNotSubstancePerTime 

The units of the kinetic law are not 'substance'/'time'.

SpeciesInvalidExtentUnits 

The species' units are not consistent with units of extent.

DelayUnitsNotTime 

The units of the delay expression are not units of time.

EventAssignCompartmentMismatch 

Mismatched units in event assignment for compartment.

EventAssignSpeciesMismatch 

Mismatched units in event assignment for species.

EventAssignParameterMismatch 

Mismatched units in event assignment for parameter.

EventAssignStoichiometryMismatch 

Mismatched units in event assignment for stoichiometry.

PriorityUnitsNotDimensionless 

The units of a priority expression must be 'dimensionless'.

UpperUnitBound 

Upper boundary of unit validation diagnostic codes.

OverdeterminedSystem 

The model is overdetermined.

InvalidModelSBOTerm 

Invalid 'sboTerm' attribute value for a Model object.

InvalidFunctionDefSBOTerm 

Invalid 'sboTerm' attribute value for a FunctionDefinition object.

InvalidParameterSBOTerm 

Invalid 'sboTerm' attribute value for a Parameter object.

InvalidInitAssignSBOTerm 

Invalid 'sboTerm' attribute value for an InitialAssignment object.

InvalidRuleSBOTerm 

Invalid 'sboTerm' attribute value for a Rule object.

InvalidConstraintSBOTerm 

Invalid 'sboTerm' attribute value for a Constraint object.

InvalidReactionSBOTerm 

Invalid 'sboTerm' attribute value for a Reaction object.

InvalidSpeciesReferenceSBOTerm 

Invalid 'sboTerm' attribute value for a SpeciesReference object.

InvalidKineticLawSBOTerm 

Invalid 'sboTerm' attribute value for a KineticLaw object.

InvalidEventSBOTerm 

Invalid 'sboTerm' attribute value for an Event object.

InvalidEventAssignmentSBOTerm 

Invalid 'sboTerm' attribute value for an EventAssignment object.

InvalidCompartmentSBOTerm 

Invalid 'sboTerm' attribute value for a Compartment object.

InvalidSpeciesSBOTerm 

Invalid 'sboTerm' attribute value for a Species object.

InvalidCompartmentTypeSBOTerm 

Invalid 'sboTerm' attribute value for a CompartmentType object.

InvalidSpeciesTypeSBOTerm 

Invalid 'sboTerm' attribute value for a SpeciesType object.

InvalidTriggerSBOTerm 

Invalid 'sboTerm' attribute value for an Event Trigger object.

InvalidDelaySBOTerm 

Invalid 'sboTerm' attribute value for an Event Delay object.

InvalidLocalParameterSBOTerm 

Invalid 'sboTerm' attribute value for a LocalParameter object.

InvalidSBMLElementSBOTerm 

Invalid 'sboTerm' attribute value for the <sbml> element.

NotesNotInXHTMLNamespace 

Notes must be placed in the XHTML XML namespace.

NotesContainsXMLDecl 

XML declarations are not permitted in Notes objects.

NotesContainsDOCTYPE 

XML DOCTYPE elements are not permitted in Notes objects.

InvalidNotesContent 

Invalid notes content found.

OnlyOneNotesElementAllowed 

Only one Notes subobject is permitted on a given SBML object.

InvalidNamespaceOnSBML 

Invalid XML namespace for the SBML container element.

MissingOrInconsistentLevel 

Missing or inconsistent value for the 'level' attribute.

MissingOrInconsistentVersion 

Missing or inconsistent value for the 'version' attribute.

PackageNSMustMatch 

Inconsistent or invalid SBML Level/Version for the package namespace declaration.

LevelPositiveInteger 

The 'level' attribute must have a positive integer value.

VersionPositiveInteger 

The 'version' attribute must have a positive integer value.

AllowedAttributesOnSBML 

Invalid attribute found on the SBML container element.

L3PackageOnLowerSBML 

An L3 package ns found on the SBML container element.

MissingModel 

No model definition found.

IncorrectOrderInModel 

Incorrect ordering of components within the Model object.

EmptyListElement 

Empty ListOf___ object found.

NeedCompartmentIfHaveSpecies 

The presence of a species requires a compartment.

OneOfEachListOf 

Only one of each kind of ListOf___ object is allowed inside a Model object.

OnlyFuncDefsInListOfFuncDefs 

Only FunctionDefinition, Notes and Annotation objects are allowed in ListOfFunctionDefinitions.

OnlyUnitDefsInListOfUnitDefs 

Only UnitDefinition, Notes and Annotation objects are allowed in ListOfUnitDefinitions objects.

OnlyCompartmentsInListOfCompartments 

Only Compartment, Notes and Annotation objects are allowed in ListOfCompartments objects.

OnlySpeciesInListOfSpecies 

Only Species, Notes and Annotation objects are allowed in ListOfSpecies objects.

OnlyParametersInListOfParameters 

Only Parameter, Notes and Annotation objects are allowed in ListOfParameters objects.

OnlyInitAssignsInListOfInitAssigns 

Only InitialAssignment, Notes and Annotation objects are allowed in ListOfInitialAssignments objects.

OnlyRulesInListOfRules 

Only Rule, Notes and Annotation objects are allowed in ListOfRules objects.

OnlyConstraintsInListOfConstraints 

Only Constraint, Notes and Annotation objects are allowed in ListOfConstraints objects.

OnlyReactionsInListOfReactions 

Only Reaction, Notes and Annotation objects are allowed in ListOfReactions objects.

OnlyEventsInListOfEvents 

Only Event, Notes and Annotation objects are allowed in ListOfEvents objects.

L3ConversionFactorOnModel 

A 'conversionFactor' attribute value must reference a Parameter object.

L3TimeUnitsOnModel 

Invalid 'timeUnits' attribute value.

L3VolumeUnitsOnModel 

Invalid 'volumeUnits' attribute value.

L3AreaUnitsOnModel 

Invalid 'areaUnits' attribute value.

L3LengthUnitsOnModel 

Invalid 'lengthUnits' attribute value.

L3ExtentUnitsOnModel 

Invalid 'extentUnits' attribute value.

AllowedAttributesOnModel 

Invalid attribute found on the Model object.

AllowedAttributesOnListOfFuncs 

Invalid attribute found on the ListOfFunctionDefinitions object.

AllowedAttributesOnListOfUnitDefs 

Invalid attribute found on the ListOfUnitDefinitions object.

AllowedAttributesOnListOfComps 

Invalid attribute found on the ListOfCompartments object.

AllowedAttributesOnListOfSpecies 

Invalid attribute found on the ListOfSpecies object.

AllowedAttributesOnListOfParams 

Invalid attribute found on the ListOfParameters object.

AllowedAttributesOnListOfInitAssign 

Invalid attribute found on the ListOfInitialAssignments object.

AllowedAttributesOnListOfRules 

Invalid attribute found on the ListOfRules object.

AllowedAttributesOnListOfConstraints 

Invalid attribute found on the ListOfConstraints object.

AllowedAttributesOnListOfReactions 

Invalid attribute found on the ListOfReactions object.

AllowedAttributesOnListOfEvents 

Invalid attribute found on the ListOfEvents object.

L3V2SubstanceUnitsOnModel 

Invalid 'substanceUnits' attribute value.

FunctionDefMathNotLambda 

Invalid expression found in the function definition.

InvalidApplyCiInLambda 

Invalid forward reference in the MathML <apply><ci>...</ci></apply> expression.

RecursiveFunctionDefinition 

Recursive function definitions are not permitted.

InvalidCiInLambda 

Invalid <ci> reference found inside the <lambda> mathematical formula.

InvalidFunctionDefReturnType 

A function's return type must be either a number or a Boolean.

OneMathElementPerFunc 

A FunctionDefinition object may contain one <math> element.

AllowedAttributesOnFunc 

Invalid attribute found on the FunctionDefinition object.

OnlyCiInsideBVar 
InvalidUnitDefId 

Invalid 'id' attribute value for a UnitDefinition object.

InvalidSubstanceRedefinition 

Invalid redefinition of built-in type 'substance'.

InvalidLengthRedefinition 

Invalid redefinition of built-in type 'length'.

InvalidAreaRedefinition 

Invalid redefinition of built-in type name 'area'.

InvalidTimeRedefinition 

Invalid redefinition of built-in type name 'time'.

InvalidVolumeRedefinition 

Invalid redefinition of built-in type name 'volume'.

VolumeLitreDefExponentNotOne 

Must use 'exponent'=1 when defining 'volume' in terms of litres.

VolumeMetreDefExponentNot3 

Must use 'exponent'=3 when defining 'volume' in terms of metres.

EmptyListOfUnits 

An empty list of Unit objects is not permitted in a UnitDefinition object.

InvalidUnitKind 

Invalid value for the 'kind' attribute of a UnitDefinition object.

OffsetNoLongerValid 

Unit attribute 'offset' is not supported in this Level+Version of SBML.

CelsiusNoLongerValid 

Unit name 'Celsius' is not defined in this Level+Version of SBML.

EmptyUnitListElement 

A ListOfUnits object must not be empty.

OneListOfUnitsPerUnitDef 

At most one ListOfUnits object is allowed inside a UnitDefinition object.

OnlyUnitsInListOfUnits 

Only Unit, Notes and Annotation objects are allowed in ListOfUnits objects.

AllowedAttributesOnUnitDefinition 

Invalid attribute found on the UnitDefinition object.

AllowedAttributesOnListOfUnits 

Invalid attribute found on the ListOfUnits object.

AllowedAttributesOnUnit 

Invalid attribute found on the Unit object.

ZeroDimensionalCompartmentSize 

Invalid use of the 'size' attribute for a zero-dimensional compartment.

ZeroDimensionalCompartmentUnits 

Invalid use of the 'units' attribute for a zero-dimensional compartment.

ZeroDimensionalCompartmentConst 

Zero-dimensional compartments must be defined to be constant.

UndefinedOutsideCompartment 

Invalid value for the 'outside' attribute of a Compartment object.

RecursiveCompartmentContainment 

Recursive nesting of compartments via the 'outside' attribute is not permitted.

ZeroDCompartmentContainment 

Invalid nesting of zero-dimensional compartments.

Invalid1DCompartmentUnits 

Invalid value for the 'units' attribute of a one-dimensional compartment.

Invalid2DCompartmentUnits 

Invalid value for the 'units' attribute of a two-dimensional compartment.

Invalid3DCompartmentUnits 

Invalid value for the 'units' attribute of a three-dimensional compartment.

InvalidCompartmentTypeRef 

Invalid value for the 'compartmentType' attribute of a compartment.

OneDimensionalCompartmentUnits 

No units defined for 1-D compartment.

TwoDimensionalCompartmentUnits 

No units defined for 2-D compartment.

ThreeDimensionalCompartmentUnits 

No units defined for 3-D Compartment object.

AllowedAttributesOnCompartment 

Invalid attribute found on Compartment object.

NoUnitsOnCompartment 

No units defined for Compartment object.

InvalidSpeciesCompartmentRef 

Invalid value found for Species 'compartment' attribute.

HasOnlySubsNoSpatialUnits 

Attribute 'spatialSizeUnits' must not be set if 'hasOnlySubstanceUnits'='true'.

NoSpatialUnitsInZeroD 

Attribute 'spatialSizeUnits' must not be set if the compartment is zero-dimensional.

NoConcentrationInZeroD 

Attribute 'initialConcentration' must not be set if the compartment is zero-dimensional.

SpatialUnitsInOneD 

Invalid value for 'spatialSizeUnits' attribute of a one-dimensional compartment.

SpatialUnitsInTwoD 

Invalid value for the 'spatialSizeUnits' attribute of a two-dimensional compartment.

SpatialUnitsInThreeD 

Invalid value for the 'spatialSizeUnits' attribute of a three-dimensional compartment.

InvalidSpeciesSusbstanceUnits 

Invalid value for a Species 'units' attribute.

BothAmountAndConcentrationSet 

Cannot set both 'initialConcentration' and 'initialAmount' attributes simultaneously.

NonBoundarySpeciesAssignedAndUsed 

Cannot use a non-boundary species in both reactions and rules simultaneously.

NonConstantSpeciesUsed 

Cannot use a constant, non-boundary species as a reactant or product.

InvalidSpeciesTypeRef 

Invalid value for the 'speciesType' attribute of a species.

MultSpeciesSameTypeInCompartment 

Cannot have multiple species of the same species type in the same compartment.

MissingSpeciesCompartment 

Missing value for the 'compartment' attribute.

SpatialSizeUnitsRemoved 

Attribute 'spatialSizeUnits' is not supported in this Level+Version of SBML.

SubstanceUnitsOnSpecies 

No substance units defined for the species.

ConversionFactorOnSpecies 

Invalid value for the 'conversionFactor' attribute.

AllowedAttributesOnSpecies 

Invalid attribute found on Species object.

InvalidParameterUnits 

Invalid value for the 'units' attribute of a Parameter object.

ParameterUnits 

No units defined for the parameter.

ConversionFactorMustConstant 

A conversion factor must reference a Parameter object declared to be a constant.

AllowedAttributesOnParameter 

Invalid attribute found on Parameter object.

InvalidInitAssignSymbol 

Invalid value for the 'symbol' attribute of an InitialAssignment object.

MultipleInitAssignments 

Multiple initial assignments for the same 'symbol' value are not allowed.

InitAssignmentAndRuleForSameId 

Cannot set a value using both an initial assignment and an assignment rule simultaneously.

OneMathElementPerInitialAssign 

An InitialAssignment object may contain one <math> element.

AllowedAttributesOnInitialAssign 

Invalid attribute found on an InitialAssignment object.

InitAssignmentCannotRef0DComp 

InitialAssignment cannot reference 0D compartment.

InvalidAssignRuleVariable 

Invalid value for the 'variable' attribute of an AssignmentRule object.

InvalidRateRuleVariable 

Invalid value for the 'variable' attribute of a RateRule object.

AssignmentToConstantEntity 

An assignment rule cannot assign an entity declared to be constant.

RateRuleForConstantEntity 

A rate rule cannot assign an entity declared to be constant.

RepeatedRule10304 
CircularRuleDependency 

Circular dependencies involving rules and reactions are not permitted.

OneMathElementPerRule 

A rule object may contain one <math> element.

AllowedAttributesOnAssignRule 

Invalid attribute found on an AssignmentRule object.

AllowedAttributesOnRateRule 

Invalid attribute found on a RateRule object.

AllowedAttributesOnAlgRule 

Invalid attribute found on an AlgebraicRule object.

RuleCannotRef0DComp 

Rule cannot reference 0D compartment.

CircularDependencyRateOf 

Circular dependencies are not permitted in RateRule and KineticLaw objects.

ConstraintMathNotBoolean 

A Constraint object's <math> must evaluate to a Boolean value.

IncorrectOrderInConstraint 

Subobjects inside the Constraint object are not in the prescribed order.

ConstraintNotInXHTMLNamespace 

A Constraint's Message subobject must be in the XHTML XML namespace.

ConstraintContainsXMLDecl 

XML declarations are not permitted within Constraint's Message objects.

ConstraintContainsDOCTYPE 

XML DOCTYPE elements are not permitted within Constraint's Message objects.

InvalidConstraintContent 

Invalid content for a Constraint object's Message object.

OneMathElementPerConstraint 

A Constraint object may contain one <math> element.

OneMessageElementPerConstraint 

A Constraint object can only have one Message subobject.

AllowedAttributesOnConstraint 

Invalid attribute found on Constraint object.

NoReactantsOrProducts 

Cannot have a reaction with neither reactants nor products.

IncorrectOrderInReaction 

Subobjects inside the Reaction object are not in the prescribed order.

EmptyListInReaction 

Reaction components, if present, cannot be empty.

InvalidReactantsProductsList 

Invalid object found in the list of reactants or products.

InvalidModifiersList 

Invalid object found in the list of modifiers.

OneSubElementPerReaction 

A Reaction object can only contain one of each allowed type of object.

CompartmentOnReaction 

Invalid value for the Reaction 'compartment' attribute.

AllowedAttributesOnReaction 

Invalid attribute for a Reaction object.

InvalidSpeciesReference 

Invalid 'species' attribute value in SpeciesReference object.

RepeatedRule20611 
BothStoichiometryAndMath 

The 'stoichiometry' attribute and StoichiometryMath subobject are mutually exclusive.

AllowedAttributesOnSpeciesReference 

Invalid attribute found on the SpeciesReference object.

AllowedAttributesOnModifier 

Invalid attribute found on the ModifierSpeciesReference object.

UndeclaredSpeciesRef 

Unknown species referenced in the kinetic law <math> formula.

IncorrectOrderInKineticLaw 

Incorrect ordering of components in the KineticLaw object.

EmptyListInKineticLaw 

The list of parameters, if present, cannot be empty.

NonConstantLocalParameter 

Parameters local to a KineticLaw object must have a 'constant' attribute value of 'true'.

SubsUnitsNoLongerValid 

Attribute 'substanceUnits' is not supported in this Level+Version of SBML.

TimeUnitsNoLongerValid 

Attribute 'timeUnits' is not supported in this Level+Version of SBML.

OneListOfPerKineticLaw 

Only one ListOfLocalParameters object is permitted within a KineticLaw object.

OnlyLocalParamsInListOfLocalParams 

Only LocalParameter, Notes and Annotation objects are allowed in ListOfLocalParameter objects.

AllowedAttributesOnListOfLocalParam 

Invalid attribute found on the ListOfLocalParameters object.

OneMathPerKineticLaw 

Only one <math> element is allowed in a KineticLaw object.

UndeclaredSpeciesInStoichMath 

Unknown species referenced in the StoichiometryMath object's <math> formula.

AllowedAttributesOnKineticLaw 

Invalid attribute found on the KineticLaw object.

AllowedAttributesOnListOfSpeciesRef 

Invalid attribute found on the ListOfSpeciesReferences object.

AllowedAttributesOnListOfMods 

Invalid attribute found on the ListOfModifiers object.

L3V2FastDeprecated 

Fast attribute deprecated.

AllowedAttributesOnLocalParameter 

Invalid attribute found on the LocalParameter object.

LocalParameterShadowsSpecies 

Invalid attribute found on the LocalParameter object.

MissingTriggerInEvent 

The Event object is missing a Trigger subobject.

TriggerMathNotBoolean 

A Trigger object's <math> expression must evaluate to a Boolean value.

MissingEventAssignment 

The Event object is missing an EventAssignment subobject.

TimeUnitsEvent 

Units referenced by 'timeUnits' attribute are not compatible with units of time.

IncorrectOrderInEvent 

Incorrect ordering of components in Event object.

ValuesFromTriggerTimeNeedDelay 

Attribute 'useValuesFromTriggerTime'='false', but the Event object does not define a delay.

DelayNeedsValuesFromTriggerTime 

The use of a Delay object requires the Event attribute 'useValuesFromTriggerTime'.

OneMathPerTrigger 

A Trigger object may have one <math> element.

OneMathPerDelay 

A Delay object may have one <math> element.

InvalidEventAssignmentVariable 

Invalid 'variable' attribute value in Event object.

EventAssignmentForConstantEntity 

An EventAssignment object cannot assign to a component having attribute 'constant'='true'.

OneMathPerEventAssignment 

An EventAssignment object may have one <math> element.

AllowedAttributesOnEventAssignment 

Invalid attribute found on the EventAssignment object.

OnlyOneDelayPerEvent 

An Event object can only have one Delay subobject.

OneListOfEventAssignmentsPerEvent 

An Event object can only have one ListOfEventAssignments subobject.

OnlyEventAssignInListOfEventAssign 

Only EventAssignment, Notes and Annotation objects are allowed in ListOfEventAssignments.

AllowedAttributesOnListOfEventAssign 

Invalid attribute found on the ListOfEventAssignments object.

AllowedAttributesOnEvent 

Invalid attribute found on the Event object.

AllowedAttributesOnTrigger 

Invalid attribute found on the Trigger object.

AllowedAttributesOnDelay 

Invalid attribute found on the Delay object.

PersistentNotBoolean 

The Trigger attribute 'persistent' must evaluate to a Boolean value.

InitialValueNotBoolean 

The Trigger attribute 'initialValue' must evaluate to a Boolean value.

OnlyOnePriorityPerEvent 

An Event object can only have one Priority subobject.

OneMathPerPriority 

A Priority object may have one <math> element.

AllowedAttributesOnPriority 

Invalid attribute found on the Priority object.

GeneralWarningNotSpecified 

Unknown error.

CompartmentShouldHaveSize 

It's best to define a size for every compartment in a model.

SpeciesShouldHaveValue 

It's best to define an initial amount or initial concentration for every species in a model.

ParameterShouldHaveUnits 

It's best to declare units for every parameter in a model.

ParameterShouldHaveValue 

It's best to declare values for every parameter in a model.

LocalParameterShadowsId 

Local parameters defined within a kinetic law shadow global object symbols.

LibSBMLAdditionalCodesLowerBound 

Lower boundary of libSBML-specific diagnostic codes.

CannotConvertToL1V1 

Cannot convert to SBML Level 1 Version 1.

NoEventsInL1 

SBML Level 1 does not support events.

NoFunctionDefinitionsInL1 

SBML Level 1 does not support function definitions.

NoConstraintsInL1 

SBML Level 1 does not support constraints.

NoInitialAssignmentsInL1 

SBML Level 1 does not support initial assignments.

NoSpeciesTypesInL1 

SBML Level 1 does not support species types.

NoCompartmentTypeInL1 

SBML Level 1 does not support compartment types.

NoNon3DCompartmentsInL1 

SBML Level 1 only supports three-dimensional compartments.

NoFancyStoichiometryMathInL1 

SBML Level 1 does not support non-integer nor non-rational stoichiometry formulas.

NoNonIntegerStoichiometryInL1 

SBML Level 1 does not support non-integer 'stoichiometry' attribute values.

NoUnitMultipliersOrOffsetsInL1 

SBML Level 1 does not support multipliers or offsets in unit definitions.

SpeciesCompartmentRequiredInL1 

In SBML Level 1, a value for 'compartment' is mandatory in species definitions.

NoSpeciesSpatialSizeUnitsInL1 

SBML Level 1 does not support species 'spatialSizeUnits' settings.

NoSBOTermsInL1 

SBML Level 1 does not support the 'sboTerm' attribute.

StrictUnitsRequiredInL1 

SBML Level 1 requires strict unit consistency.

ConversionFactorNotInL1 

SBML Level 1 does not support the 'conversionFactor' attribute.

CompartmentNotOnL1Reaction 

SBML Level 1 does not support the 'compartment' attribute on Reaction objects.

ExtentUnitsNotSubstance 

Units of extent must be compatible with units of substance.

GlobalUnitsNotDeclared 

Global units must be refer to unit kind or unitDefinition.

HasOnlySubstanceUnitsNotinL1 

The concept of hasOnlySubstanceUnits was not available in SBML Level 1.

AvogadroNotSupported 

Avogadro not supported in Levels 2 and 1.

NoConstraintsInL2v1 

SBML Level 2 Version 1 does not support Constraint objects.

NoInitialAssignmentsInL2v1 

SBML Level 2 Version 1 does not support InitialAssignment objects.

NoSpeciesTypeInL2v1 

SBML Level 2 Version 1 does not support SpeciesType objects.

NoCompartmentTypeInL2v1 

SBML Level 2 Version 1 does not support CompartmentType objects.

NoSBOTermsInL2v1 

SBML Level 2 Version 1 does not support the 'sboTerm' attribute.

NoIdOnSpeciesReferenceInL2v1 

SBML Level 2 Version 1 does not support the 'id' attribute on SpeciesReference objects.

NoDelayedEventAssignmentInL2v1 

SBML Level 2 Version 1 does not support the 'useValuesFromTriggerTime' attribute.

StrictUnitsRequiredInL2v1 

SBML Level 2 Version 1 requires strict unit consistency.

IntegerSpatialDimensions 

SBML Level 2 Version 1 requires that compartments have spatial dimensions of 0-3.

StoichiometryMathNotYetSupported 

Conversion to StoichiometryMath objects not yet supported.

PriorityLostFromL3 

SBML Level 2 Version 1 does not support priorities on Event objects.

NonPersistentNotSupported 

SBML Level 2 Version 1 does not support the 'persistent' attribute on Trigger objects.

InitialValueFalseEventNotSupported 

SBML Level 2 Version 1 does not support the 'initialValue' attribute on Trigger objects.

SBOTermNotUniversalInL2v2 

The 'sboTerm' attribute is invalid for this component in SBML Level 2 Version 2.

NoUnitOffsetInL2v2 

This Level+Version of SBML does not support the 'offset' attribute on Unit objects.

NoKineticLawTimeUnitsInL2v2 

This Level+Version of SBML does not support the 'timeUnits' attribute on KineticLaw objects.

NoKineticLawSubstanceUnitsInL2v2 

This Level+Version of SBML does not support the 'substanceUnits' attribute on KineticLaw objects.

NoDelayedEventAssignmentInL2v2 

This Level+Version of SBML does not support the 'useValuesFromTriggerTime' attribute.

ModelSBOBranchChangedBeyondL2v2 

The allowable 'sboTerm' attribute values for Model objects differ for this SBML Level+Version.

StrictUnitsRequiredInL2v2 

SBML Level 2 Version 2 requires strict unit consistency.

StrictSBORequiredInL2v2 

SBML Level 2 Version 2 requires strict SBO term consistency.

DuplicateAnnotationInvalidInL2v2 

Duplicate top-level annotations are invalid in SBML Level 2 Version 2.

NoUnitOffsetInL2v3 

This Level+Version of SBML does not support the 'offset' attribute on Unit objects.

NoKineticLawTimeUnitsInL2v3 

This Level+Version of SBML does not support the 'timeUnits' attribute on KineticLaw objects.

NoKineticLawSubstanceUnitsInL2v3 

This Level+Version of SBML does not support the 'substanceUnits' attribute on KineticLaw objects.

NoSpeciesSpatialSizeUnitsInL2v3 

This Level+Version of SBML does not support the 'spatialSizeUnit' attribute on Species objects.

NoEventTimeUnitsInL2v3 

This Level+Version of SBML does not support the 'timeUnits' attribute on Event objects.

NoDelayedEventAssignmentInL2v3 

This Level+Version of SBML does not support the 'useValuesFromTriggerTime' attribute.

ModelSBOBranchChangedBeyondL2v3 

The allowable 'sboTerm' attribute values for Model objects differ for this SBML Level+Version.

StrictUnitsRequiredInL2v3 

SBML Level 2 Version 3 requires strict unit consistency.

StrictSBORequiredInL2v3 

SBML Level 2 Version 3 requires strict SBO term consistency.

DuplicateAnnotationInvalidInL2v3 

Duplicate top-level annotations are invalid in SBML Level 2 Version 3.

NoUnitOffsetInL2v4 

This Level+Version of SBML does not support the 'offset' attribute on Unit objects.

NoKineticLawTimeUnitsInL2v4 

This Level+Version of SBML does not support the 'timeUnits' attribute on KineticLaw objects.

NoKineticLawSubstanceUnitsInL2v4 

This Level+Version of SBML does not support the 'substanceUnits' attribute on KineticLaw objects.

NoSpeciesSpatialSizeUnitsInL2v4 

This Level+Version of SBML does not support the 'spatialSizeUnit' attribute on Species objects.

NoEventTimeUnitsInL2v4 

This Level+Version of SBML does not support the 'timeUnits' attribute on Event objects.

ModelSBOBranchChangedInL2v4 

The allowable 'sboTerm' attribute values for Model objects differ for this SBML Level+Version.

DuplicateAnnotationInvalidInL2v4 

Duplicate top-level annotations are invalid in SBML Level 2 Version 4.

NoSpeciesTypeInL3v1 

SBML Level 3 Version 1 does not support SpeciesType objects.

NoCompartmentTypeInL3v1 

SBML Level 3 Version 1 does not support CompartmentType objects.

NoUnitOffsetInL3v1 

This Level+Version of SBML does not support the 'offset' attribute on Unit objects.

NoKineticLawTimeUnitsInL3v1 

This Level+Version of SBML does not support the 'timeUnits' attribute on KineticLaw objects.

NoKineticLawSubstanceUnitsInL3v1 

This Level+Version of SBML does not support the 'substanceUnits' attribute on KineticLaw objects.

NoSpeciesSpatialSizeUnitsInL3v1 

This Level+Version of SBML does not support the 'spatialSizeUnit' attribute on Species objects.

NoEventTimeUnitsInL3v1 

This Level+Version of SBML does not support the 'timeUnits' attribute on Event objects.

ModelSBOBranchChangedInL3v1 

The allowable 'sboTerm' attribute values for Model objects differ for this SBML Level+Version.

DuplicateAnnotationInvalidInL3v1 

Duplicate top-level annotations are invalid in SBML Level 3 Version 1.

NoCompartmentOutsideInL3v1 

This Level+Version of SBML does not support the 'outside' attribute on Compartment objects.

NoStoichiometryMathInL3v1 

This Level+Version of SBML does not support the StoichiometryMath object.

DoubleExponentNotSupported 

Exponent of type double not supported in Levels 2 and 1.

MathMLElementNotSupported 

This MathML element is only permitted in L3V2.

EmptyListOfElementNotSupported 

Empty 'ListOf' element is only permitted in L3V2.

MissingMathElementNotSupported 

Missing <math> element is only permitted in L3V2.

MissingTriggerElementNotSupported 

missing <trigger> element is only permitted in L3V2.

BooleanNumericDiscrepancy 

Interchange of Boolean and numeric values only permitted in L3V2.

IdNameSBaseInL3V2 

Conversion will lose attributes only available in L3V2 and higher.

MissingParticipantsNotSupported 

Omission of both <listOfReactants> and <listOfProducts> is only valid in L3V2.

ConvertibleMathInitialAssignment 

Some L3V2-specific MathML elements are not permitted in InitialAssignment objects.

FastReactionsNotSupported 

Conversion of reactions employing the 'fast' attribute is not supported.

SpeciesRefIdInMathMLNotSupported 

This MathML element is only permitted in L3V2.

InvalidSBMLLevelVersion 

Unknown Level+Version combination of SBML.

InvalidPackageLevelVersion 

Invalid package Level+Version combination of SBML.

AnnotationNotesNotAllowedLevel1 

Annotation objects on the SBML container element are not permitted in SBML Level 1.

InvalidRuleOrdering 

Invalid ordering of rules.

RequiredPackagePresent 

The SBML document requires an SBML Level 3 package unavailable in this software.

UnrequiredPackagePresent 

The SBML document uses an SBML Level 3 package unavailable in this software.

PackageRequiredShouldBeFalse 

This package expects required to be false.

SubsUnitsAllowedInKL 

Disallowed value for attribute 'substanceUnits' on KineticLaw object.

TimeUnitsAllowedInKL 

Disallowed value for attribute 'timeUnits' on KineticLaw object.

FormulaInLevel1KL 

Only predefined functions are allowed in SBML Level 1 formulas.

L3SubstanceUnitsOnModel 

Invalid 'substanceUnits' attribute value.

StoichiometryMathMissingMath 

The <stoichiometryMath> element must contain a <math> element.

TimeUnitsRemoved 

This Level+Version of SBML does not support the 'timeUnits' attribute on Event objects.

BadMathML 

Invalid MathML expression.

FailedMathMLReadOfDouble 

Missing or invalid floating-point number in MathML expression.

FailedMathMLReadOfInteger 

Missing or invalid integer in MathML expression.

FailedMathMLReadOfExponential 

Missing or invalid exponential expression in MathML.

FailedMathMLReadOfRational 

Missing or invalid rational expression in MathML.

BadMathMLNodeType 

Invalid MathML element.

InvalidMathMLAttribute 

Invalid MathML attribute.

NoTimeSymbolInFunctionDef 

Use of <csymbol> for 'time' not allowed within FunctionDefinition objects.

NoBodyInFunctionDef 

There must be a <lambda> body within the <math> element of a FunctionDefinition object.

DanglingUnitSIdRef 

Units must refer to valid unit or unitDefinition.

RDFMissingAboutTag 

RDF missing the <about> tag.

RDFEmptyAboutTag 

RDF empty <about> tag.

RDFAboutTagNotMetaid 

RDF <about> tag is not metaid.

RDFNotCompleteModelHistory 

RDF does not contain valid ModelHistory.

RDFNotModelHistory 

RDF does not result in a ModelHistory.

AnnotationNotElement 

Annotation must contain element.

NestedAnnotationNotAllowed 

Nested annotations not allowed.

InconsistentArgUnitsWarnings 

This is an internal error that reverts to 10501.

InconsistentPowerUnitsWarnings 

This is an internal error that reverts to 10501.

InconsistentExponUnitsWarnings 

This is an internal error that reverts to 10501.

UndeclaredUnits 

Missing unit declarations on parameters or literal numbers in expression.

UndeclaredTimeUnitsL3 

Unable to verify consistency of units: the unit of time has not been declared.

UndeclaredExtentUnitsL3 

Unable to verify consistency of units: the units of reaction extent have not been declared.

UndeclaredObjectUnitsL3 

Unable to verify consistency of units: encountered a model entity with no declared units.

CannotVerifyUnitsObjectNoMath 

Unable to verify consistency of units: encountered an object with no <math> element.

UnrecognisedSBOTerm 

Unrecognized 'sboTerm' attribute value.

ObseleteSBOTerm 

Obsolete 'sboTerm' attribute value.

IncorrectCompartmentSpatialDimensions 

In SBML Level 1, only three-dimensional compartments are allowed.

CompartmentTypeNotValidAttribute 

CompartmentType objects are not available in this Level+Version of SBML.

ConstantNotValidAttribute 

This Level+Version of SBML does not support the 'constant' attribute on this component.

MetaIdNotValidAttribute 

Attribute 'metaid' is not available in SBML Level 1.

SBOTermNotValidAttributeBeforeL2V3 

The 'sboTerm' attribute is not available on this component before SBML Level 2 Version 3.

InvalidL1CompartmentUnits 

Invalid units for a compartment in SBML Level 1.

L1V1CompartmentVolumeReqd 

In SBML Level 1, a compartment's volume must be specified.

CompartmentTypeNotValidComponent 

CompartmentType objects are not available in this Level+Version of SBML.

ConstraintNotValidComponent 

Constraint objects are not available in this Level+Version of SBML.

EventNotValidComponent 

Event objects are not available in this Level+Version of SBML.

SBOTermNotValidAttributeBeforeL2V2 

The 'sboTerm' attribute is invalid for this component before Level 2 Version 2.

FuncDefNotValidComponent 

FunctionDefinition objects are not available in this Level+Version of SBML.

InitialAssignNotValidComponent 

InitialAssignment objects are not available in this Level+Version of SBML.

VariableNotValidAttribute 

Attribute 'variable' is not available on this component in this Level+Version of SBML.

UnitsNotValidAttribute 

Attribute 'units' is not available on this component in this Level+Version of SBML.

ConstantSpeciesNotValidAttribute 

Attribute 'constant' is not available on Species objects in SBML Level 1.

SpatialSizeUnitsNotValidAttribute 

Attribute 'spatialSizeUnits' is not available on Species objects in SBML Level 1.

SpeciesTypeNotValidAttribute 

Attribute 'speciesType' is not available on Species objects in SBML Level 1.

HasOnlySubsUnitsNotValidAttribute 

Attribute 'hasOnlySubstanceUnits' is not available on Species objects in SBML Level 1.

IdNotValidAttribute 

Attribute 'id' is not available on SpeciesReference objects in SBML Level 1.

NameNotValidAttribute 

Attribute 'name' is not available on SpeciesReference objects in SBML Level 1.

SpeciesTypeNotValidComponent 

The SpeciesType object is not supported in SBML Level 1.

StoichiometryMathNotValidComponent 

The StoichiometryMath object is not supported in SBML Level 1.

MultiplierNotValidAttribute 

Attribute 'multiplier' on Unit objects is not supported in SBML Level 1.

OffsetNotValidAttribute 

Attribute 'offset' on Unit objects is only available in SBML Level 2 Version 1.

L3SpatialDimensionsUnset 

No value given for 'spatialDimensions' attribute; assuming a value of 3.

OperationInterrupted 

Operation was interrupted by the user.

UnknownCoreAttribute 

Encountered an unknown attribute in the SBML Core namespace.

UnknownPackageAttribute 

Encountered an unknown attribute in an SBML Level 3 package namespace.

PackageConversionNotSupported 

Conversion of SBML Level 3 package constructs is not yet supported.

InvalidTargetLevelVersion 

The requested SBML Level/Version combination is not known to exist.

L3NotSupported 

SBML Level 3 is not yet supported.

SBMLCodesUpperBound 

Upper boundary of libSBML-specific diagnostic codes.

Severity codes for SBMLError diagnostics.

The only publicly-reported values of this type are the four from XMLErrorSeverity_t. All other values are used internally only, with translation of those codes done in SBMLError.cpp

See also
XMLErrorSeverity_t