# SetErrStatus

Sets the new VML error status according to err and stores the previous VML error status to olderr.

## Syntax

Fortran:

olderr = vmlseterrstatus( err )

C:

olderr = vmlSetErrStatus( err );

## Input Parameters

Name | Type | Description
--- | --- | ---
err | FORTRAN: INTEGER, INTENT(IN) C: int | Specifies the VML error status to be set.

## Output Parameters

Name | Type | Description
--- | --- | ---
olderr | FORTRAN: INTEGER C: int | Specifies the former VML error status.

## Description

Table“Values of the VML Error Status” lists possible values of the err parameter.

Values of the VML Error Status
Error Status | Description
--- | ---
VML_STATUS_OK | The execution was completed successfully.
VML_STATUS_BADSIZE | The array dimension is not positive.
VML_STATUS_BADMEM | NULL pointer is passed.
VML_STATUS_ERRDOM | At least one of array values is out of a range of definition.
VML_STATUS_SING | At least one of array values caused a singularity.
VML_STATUS_OVERFLOW | An overflow has happened during the calculation process.
VML_STATUS_UNDERFLOW | An underflow has happened during the calculation process.

## Examples

vmlSetErrStatus( VML_STATUS_OK );

vmlSetErrStatus( VML_STATUS_ERRDOM );

vmlSetErrStatus( VML_STATUS_UNDERFLOW );

Parent topic: VML Service Functions