mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0023427: Unused C-sources in OSD package
Deleted unused sources in OSD package
This commit is contained in:
23
src/OSD/OSD_Error.cdl
Normal file → Executable file
23
src/OSD/OSD_Error.cdl
Normal file → Executable file
@@ -18,29 +18,6 @@ class Error from OSD
|
||||
|
||||
---Purpose: Management of OSD errors
|
||||
|
||||
-- Error handling style example:
|
||||
--
|
||||
--
|
||||
-- try{
|
||||
-- .
|
||||
-- .
|
||||
-- .
|
||||
-- OSD_Semaphore mysem("KeyName");
|
||||
-- if (mysem.Failed())
|
||||
-- switch (mysem.Error()){
|
||||
-- case 201: mysem.Perror();
|
||||
-- case 202: cout << "Just a warning";
|
||||
-- }
|
||||
-- .
|
||||
-- .
|
||||
-- .
|
||||
-- }
|
||||
-- catch(Standard_Failure){
|
||||
-- Handle(Standard_Failure) Occur = Standard_Failure::Caught();
|
||||
-- .
|
||||
-- . // Programmer's decision
|
||||
-- .
|
||||
--
|
||||
-- Each method can be error tested with object.Failed().
|
||||
-- To manage an occuring error, just use object.Perror();
|
||||
--
|
||||
|
Reference in New Issue
Block a user