Back to index

salome-med  6.5.0
Functions
testUMedException.cxx File Reference
#include <cstdlib>
#include "MEDMEM_STRING.hxx"
#include "MEDMEM_Exception.hxx"

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 30 of file testUMedException.cxx.

{
        MEDEXCEPTION a = MEDEXCEPTION("test med exception");
        cout << a << endl;;
        cout << a.what() << endl;;

        MEDEXCEPTION b(a);
        cout << b << endl;
        cout << b.what() << endl;;

        MEDEXCEPTION c("test med exception",argv[0],14);
        cout << c << endl;
        cout << c.what() << endl;;

        STRING msgErr;
        msgErr << "ESSAI::ESSAI()!  "<< 4 << "ieme essai ";
        cout << MEDEXCEPTION (LOCALIZED(msgErr)).what() << endl ;

        const char * LOC = "toto" ;
        cout << MEDEXCEPTION (LOCALIZED(STRING(LOC)<<" et titi")).what() << endl ;

        return EXIT_SUCCESS;    

}