com.businessobjects.rebean.wi
Class ReportException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.businessobjects.rebean.wi.REException
                  extended by com.businessobjects.rebean.wi.ReportException
All Implemented Interfaces:
java.io.Serializable

public class ReportException
extends REException

A ReportException is thrown when an illegal operation has been made on a reporting feature.

See Also:
Serialized Form

Field Summary
static int AGGR_ON_AXIS
          Deprecated. since 6.5.0, it is possible to put aggregations on a block axis
static int ATTACH_DIFFERENT_CONTAINER
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int CANNOT_REMOVE_BODY
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int CIRCULAR_ATTACHMENT
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int EXPR_NOT_IN_AXIS
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int EXPR_NOT_IN_CELL
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int HOR_ATTACHMENT_ON_SECTION
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int MEASURE_IN_SECTION
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int ONLY_DIMENSION_OBJ
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int ONLY_MEASURE_OBJ
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
static int TWO_EXPR_IN_SECTION
          Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
 
Constructor Summary
ReportException(java.lang.String message, java.lang.String localMessage, int errorCode, java.lang.String fullErrorCode)
           Constructor.
 
Method Summary
 
Methods inherited from class com.businessobjects.rebean.wi.REException
getCode, getErrorCode, getLocalizedMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AGGR_ON_AXIS

public static final int AGGR_ON_AXIS
Deprecated. since 6.5.0, it is possible to put aggregations on a block axis
Cannot put an aggregation formula on an axis.

See Also:
FormulaExpression.isAggregation(), Constant Field Values

EXPR_NOT_IN_AXIS

public static final int EXPR_NOT_IN_AXIS
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Expression not in axis.

See Also:
Constant Field Values

ONLY_MEASURE_OBJ

public static final int ONLY_MEASURE_OBJ
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Only measure objects allowed on this axis.

See Also:
Constant Field Values

MEASURE_IN_SECTION

public static final int MEASURE_IN_SECTION
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Cannot base a section on a measure object.

See Also:
ReportExpression.getQualification(), Constant Field Values

TWO_EXPR_IN_SECTION

public static final int TWO_EXPR_IN_SECTION
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Cannot add more than one expression to a section's axis.

See Also:
Constant Field Values

CIRCULAR_ATTACHMENT

public static final int CIRCULAR_ATTACHMENT
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Circular attachment is forbidden.

See Also:
Constant Field Values

EXPR_NOT_IN_CELL

public static final int EXPR_NOT_IN_CELL
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.

Expression different from TableCell's expression.

Thrown when a BlockCalculation has been obtained using Table.getHBlockCalculation(TableCell) or Table.getVBlockCalculation(TableCell), and the TableCell contained an expression different from the one passed in BlockCalculation.createCalculationElement(ReportExpression, Calculation).

To solve this problem, pass null for the first parameter of createCalculationElement(ReportExpression, Calculation).

See Also:
Constant Field Values

ATTACH_DIFFERENT_CONTAINER

public static final int ATTACH_DIFFERENT_CONTAINER
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Cannot attach to elements that are not in the same ReportElementContainer.

See Also:
Constant Field Values

HOR_ATTACHMENT_ON_SECTION

public static final int HOR_ATTACHMENT_ON_SECTION
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
It is not allowed to create a horizontal attachment on a section.

Since:
6.5.0
See Also:
Constant Field Values

CANNOT_REMOVE_BODY

public static final int CANNOT_REMOVE_BODY
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
It is not allowed to remove all rows and columns of the table body. At least one row and one column must remain.

Since:
11.5
See Also:
CellMatrix.removeRow(int), CellMatrix.removeColumn(int), Constant Field Values

ONLY_DIMENSION_OBJ

public static final int ONLY_DIMENSION_OBJ
Deprecated. This error code corresponds to a possible return value for REException.getErrorCode(), which should no longer be called; use REException.getCode() instead.
Only dimension and detail objects are allowed on this axis.

Since:
11.5
See Also:
Constant Field Values
Constructor Detail

ReportException

public ReportException(java.lang.String message,
                       java.lang.String localMessage,
                       int errorCode,
                       java.lang.String fullErrorCode)

Constructor.

This code is not intended to be called by clients; only REBean should instantiate this type of exception. The format of this constructor can change at any time, without keeping backward compatibility.

Parameters:
message - The error message (default language).
localMessage - A localized version of message (session language).
errorCode - The unique identifier associated with this exception.
fullErrorCode - The error code with the correct prefix.