Contains algorithm and description of occured error. More...
#include <SMESH_ComputeError.hxx>
Public Member Functions | |
| SMESH_ComputeError (int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0) | |
| bool | IsOK () |
| bool | IsCommon () |
| std::string | CommonName () const |
Static Public Member Functions | |
| static SMESH_ComputeErrorPtr | New (int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0) |
Data Fields | |
| int | myName |
| SMESH_ComputeErrorName or anything algo specific. | |
| std::string | myComment |
| const SMESH_Algo * | myAlgo |
| std::list< const SMDS_MeshElement * > | myBadElements |
| to explain COMPERR_BAD_INPUT_MESH | |
Contains algorithm and description of occured error.
Definition at line 62 of file SMESH_ComputeError.hxx.
| SMESH_ComputeError.SMESH_ComputeError | ( | int | error = COMPERR_OK, |
| std::string | comment = "", |
||
| const SMESH_Algo * | algo = 0 |
||
| ) |
| std::string SMESH_ComputeError::CommonName | ( | ) | const |
Definition at line 88 of file SMESH_ComputeError.hxx.
References _case2char, COMPERR_ALGO_FAILED, COMPERR_BAD_INPUT_MESH, COMPERR_BAD_SHAPE, COMPERR_EXCEPTION, COMPERR_MEMORY_PB, COMPERR_OCC_EXCEPTION, COMPERR_OK, COMPERR_SLM_EXCEPTION, COMPERR_STD_EXCEPTION, and myName.
{
switch( myName ) {
_case2char(COMPERR_OK );
_case2char(COMPERR_BAD_INPUT_MESH);
_case2char(COMPERR_STD_EXCEPTION );
_case2char(COMPERR_OCC_EXCEPTION );
_case2char(COMPERR_SLM_EXCEPTION );
_case2char(COMPERR_EXCEPTION );
_case2char(COMPERR_MEMORY_PB );
_case2char(COMPERR_ALGO_FAILED );
_case2char(COMPERR_BAD_SHAPE );
default:;
}
return "";
}
| bool SMESH_ComputeError.IsCommon | ( | ) |
| bool SMESH_ComputeError.IsOK | ( | ) |
Definition at line 80 of file SMESH_ComputeError.hxx.
References COMPERR_OK, and myName.
{ return myName == COMPERR_OK; }
| static SMESH_ComputeErrorPtr SMESH_ComputeError.New | ( | int | error = COMPERR_OK, |
| std::string | comment = "", |
||
| const SMESH_Algo * | algo = 0 |
||
| ) | [static] |
Definition at line 70 of file SMESH_ComputeError.hxx.
References ex01_cube2build.algo, and SMESH_ComputeError().
Referenced by VISCOUS._ViscousBuilder._ViscousBuilder(), SMESH_subMesh.ApplyToCollection(), ComputePentahedralMesh(), SMESH_subMesh.ComputeStateEngine(), StdMeshers_PrismAsBlock.error(), _QuadFaceGrid.error(), SMESH.SMESH_Gen.Evaluate(), StdMeshers_SMESHBlock.GetError(), and StdMeshers_PrismAsBlock.Init().
{ return SMESH_ComputeErrorPtr( new SMESH_ComputeError( error, comment, algo )); }
Definition at line 66 of file SMESH_ComputeError.hxx.
| std::list<const SMDS_MeshElement*> SMESH_ComputeError.myBadElements |
to explain COMPERR_BAD_INPUT_MESH
Definition at line 68 of file SMESH_ComputeError.hxx.
| std::string SMESH_ComputeError.myComment |
Definition at line 65 of file SMESH_ComputeError.hxx.
SMESH_ComputeErrorName or anything algo specific.
Definition at line 64 of file SMESH_ComputeError.hxx.
Referenced by CommonName(), IsCommon(), and IsOK().