14.7 ExceptionsΒΆ

  • DimensionError: Thrown when a given object has the wrong number of dimensions, or they have not the right size.
  • DomainError: Invalid domain.
  • ExpressionError: Tried to construct an expression from invalid.
  • FatalError: A fatal error has happened.
  • FusionException: Base class for all normal exceptions in fusion.
  • FusionRuntimeException: Base class for all run-time exceptions in fusion.
  • IOError: Error when reading or writing a stream, or opening a file.
  • IndexError: Index out of bound, or a multi-dimensional index had wrong number of dimensions.
  • LengthError: An array did not have the required length, or two arrays were expected to have same length.
  • MatrixError: Thrown if data used in construction of a matrix contained inconsistencies or errors.
  • ModelError: Thrown when objects from different models were mixed.
  • NameError: Name clash; tries to add a variable or constraint with a name that already exists.
  • OptimizeError: An error occurred during optimization.
  • ParameterError: Tried to use an invalid parameter for a value that was invalid for a specific parameter.
  • RangeError: Invalid range specified
  • SetDefinitionError: Invalid data for constructing set.
  • SliceError: Invalid slice definition, negative slice or slice index out of bounds.
  • SolutionError: Requested a solution that was undefined or whose status was not acceptable.
  • SparseFormatError: The given sparsity patters was invalid or specified an index that was out of bounds.
  • UnexpectedError: An unexpected error has happened. No specific excepion could have been risen.
  • UnimplementedError: Called a stub. Functionality has not yet been implemented.
  • ValueConversionError: Error casting or converting a value.