LibreOffice Module formula (master) 1
Enumerations | Functions
errorcodes.hxx File Reference
#include <sal/mathconf.h>
#include <sal/types.h>
#include <cmath>
#include <limits>
Include dependency graph for errorcodes.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  FormulaError : sal_uInt16 {
  NONE = 0 ,
  IllegalChar = 501 ,
  IllegalArgument = 502 ,
  IllegalFPOperation = 503 ,
  IllegalParameter = 504 ,
  Pair = 507 ,
  PairExpected = 508 ,
  OperatorExpected = 509 ,
  VariableExpected = 510 ,
  ParameterExpected = 511 ,
  CodeOverflow = 512 ,
  StringOverflow = 513 ,
  StackOverflow = 514 ,
  UnknownState = 515 ,
  UnknownVariable = 516 ,
  UnknownOpCode = 517 ,
  UnknownStackVariable = 518 ,
  NoValue = 519 ,
  UnknownToken = 520 ,
  NoCode = 521 ,
  CircularReference = 522 ,
  NoConvergence = 523 ,
  NoRef = 524 ,
  NoName = 525 ,
  CellNoValue = 529 ,
  NoAddin = 530 ,
  NoMacro = 531 ,
  DivisionByZero = 532 ,
  NestedArray = 533 ,
  NotNumericString = 534 ,
  JumpMatHasResult = 535 ,
  ElementNaN = 536 ,
  RetryCircular = 537 ,
  MatrixSize = 538 ,
  BadArrayContent = 539 ,
  LinkFormulaNeedingCheck = 540 ,
  NotAvailable = 0x7fff
}
 

Functions

double CreateDoubleError (FormulaError nErr)
 Unconditionally construct a double value of NAN where the lower bits represent an interpreter error code. More...
 
FormulaError GetDoubleErrorValue (double fVal)
 Recreate the error code of a coded double error, if any. More...
 
bool isPublishedFormulaError (FormulaError nErr)
 Error values that are accepted as detailed "#ERRxxx!" constants. More...
 

Enumeration Type Documentation

◆ FormulaError

enum class FormulaError : sal_uInt16
strong
Enumerator
NONE 
IllegalChar 
IllegalArgument 
IllegalFPOperation 
IllegalParameter 
Pair 
PairExpected 
OperatorExpected 
VariableExpected 
ParameterExpected 
CodeOverflow 
StringOverflow 
StackOverflow 
UnknownState 
UnknownVariable 
UnknownOpCode 
UnknownStackVariable 
NoValue 
UnknownToken 
NoCode 
CircularReference 
NoConvergence 
NoRef 
NoName 
CellNoValue 
NoAddin 
NoMacro 
DivisionByZero 
NestedArray 
NotNumericString 
JumpMatHasResult 
ElementNaN 
RetryCircular 
MatrixSize 
BadArrayContent 
LinkFormulaNeedingCheck 
NotAvailable 

Definition at line 31 of file errorcodes.hxx.

Function Documentation

◆ CreateDoubleError()

double CreateDoubleError ( FormulaError  nErr)
inline

Unconditionally construct a double value of NAN where the lower bits represent an interpreter error code.

Definition at line 98 of file errorcodes.hxx.

◆ GetDoubleErrorValue()

FormulaError GetDoubleErrorValue ( double  fVal)
inline

Recreate the error code of a coded double error, if any.

Definition at line 107 of file errorcodes.hxx.

References if(), IllegalFPOperation, NONE, and NoValue.

◆ isPublishedFormulaError()

bool isPublishedFormulaError ( FormulaError  nErr)
inline

Error values that are accepted as detailed "#ERRxxx!" constants.

Used in FormulaCompiler::GetErrorConstant() to prevent users from inventing arbitrary values that already have or later might get a significant meaning.

Definition at line 128 of file errorcodes.hxx.

References BadArrayContent, CellNoValue, CircularReference, CodeOverflow, DivisionByZero, ElementNaN, IllegalArgument, IllegalChar, IllegalFPOperation, IllegalParameter, JumpMatHasResult, LinkFormulaNeedingCheck, MatrixSize, NestedArray, NoAddin, NoCode, NoConvergence, NoMacro, NoName, NONE, NoRef, NotAvailable, NotNumericString, NoValue, OperatorExpected, Pair, PairExpected, ParameterExpected, RetryCircular, StackOverflow, StringOverflow, UnknownOpCode, UnknownStackVariable, UnknownState, UnknownToken, UnknownVariable, and VariableExpected.

Referenced by formula::FormulaCompiler::GetErrorConstant().