From 214ed40b22fd47a0f3e00d8bd714a06ced286836 Mon Sep 17 00:00:00 2001
From: Beman Dawes
-Effects: If
-ec != throws
:-
-- If an error occurs, and sets
-ec
to an appropriate- error_code
that identifies the error - value and category. The category should be the most specific- error_category
applicable to the - particular error.- if an error does not occur,
-ec.clear()
.Throws: If
ec == throws
, throws an exception of type +Postconditions:
+++If
+&ec != &throws
and an error occurred:+
+- +
ec.value()
returns the implementation specific error + number for the particular error that occurred.- +
ec.category()
returns the+ error_category
forec.value()
.if
+&ec != &throws
and an error did not occur,ec.clear()
.Throws:
++If an error occurs and
+ derived from&ec == &throws
, throws an exception of typesystem_error
or of a type - derived fromsystem_error
.system_error
. The + exception'scode()
member function returns a reference to an +error_code
object with the behavior specified in + Postconditions. +
bool operator==( const error_code & lhs, const error_code & rhs );@@ -783,7 +791,7 @@ application program interfaces.
Revised -October 05, 2008 +October 08, 2008
© Copyright Beman Dawes, 2006, 2007, 2008