Fixed issue #157.

This commit is contained in:
Vincent Richard 2017-01-11 20:20:05 +01:00
parent 7627129f4e
commit 8a63b02764
9 changed files with 15 additions and 15 deletions

View File

@ -166,7 +166,7 @@ In VMime, error handling is exclusively based on exceptions, there is no error
codes, or things like that.
VMime code may throw exceptions in many different situations: an unexpected
error occured, an operation is not supported, etc. You should catch them if
error occurred, an operation is not supported, etc. You should catch them if
you want to report failures to the user. This is also useful when debugging
your program.

View File

@ -99,7 +99,7 @@ public:
* byte sequence was found in the input bytes, and the
* 'silentlyReplaceInvalidSequences' flag is set to false in
* the charsetConverterOptions
* @throws exceptions::charset_conv_error if an unexpected error occured
* @throws exceptions::charset_conv_error if an unexpected error occurred
* during the conversion
*/
static void convert(const string& in, string& out,
@ -118,7 +118,7 @@ public:
* byte sequence was found in the input bytes, and the
* 'silentlyReplaceInvalidSequences' flag is set to false in
* the charsetConverterOptions
* @throws exceptions::charset_conv_error if an unexpected error occured
* @throws exceptions::charset_conv_error if an unexpected error occurred
* during the conversion
*/
static void convert(utility::inputStream& in, utility::outputStream& out,

View File

@ -45,7 +45,7 @@ namespace utility
* to input bytes.
*
* May throw a exceptions::charset_conv_error if an unexpected error
* occured when initializing convert, or during charset conversion.
* occurred when initializing convert, or during charset conversion.
*
* May also throw a exceptions::illegal_byte_sequence_for_charset
* if an illegal byte sequence was found in the input bytes, and the
@ -109,7 +109,7 @@ public:
* byte sequence was found in the input bytes, and the
* 'silentlyReplaceInvalidSequences' flag is set to false in
* the charsetConverterOptions
* @throws exceptions::charset_conv_error if an unexpected error occured
* @throws exceptions::charset_conv_error if an unexpected error occurred
* during the conversion
*/
virtual void convert(const string& in, string& out, status* st = NULL) = 0;
@ -125,7 +125,7 @@ public:
* byte sequence was found in the input bytes, and the
* 'silentlyReplaceInvalidSequences' flag is set to false in
* the charsetConverterOptions
* @throws exceptions::charset_conv_error if an unexpected error occured
* @throws exceptions::charset_conv_error if an unexpected error occurred
* during the conversion
*/
virtual void convert(utility::inputStream& in, utility::outputStream& out, status* st = NULL) = 0;

View File

@ -211,7 +211,7 @@ void charsetConverter_icu::convert
st->outputBytesWritten += cpTarget - &cpOutBuffer[0];
}
// (*) If an error occured while converting from input charset, throw it now
// (*) If an error occurred while converting from input charset, throw it now
if (toErr == U_INVALID_CHAR_FOUND ||
toErr == U_TRUNCATED_CHAR_FOUND ||
toErr == U_ILLEGAL_CHAR_FOUND)

View File

@ -216,9 +216,9 @@ public:
folderEvent(shared_ptr <folder> folder, const Types type, const utility::path& oldPath, const utility::path& newPath);
/** Return the folder on which the event occured.
/** Return the folder on which the event occurred.
*
* @return folder on which the event occured
* @return folder on which the event occurred
*/
shared_ptr <folder> getFolder() const;

View File

@ -850,7 +850,7 @@ void posixSocket::throwSocketError(const int err)
case EBADF: msg = "EBADF: invalid descriptor"; break;
case ECONNRESET: msg = "ECONNRESET: connection reset by peer"; break;
case EFAULT: msg = "EFAULT: bad user space address"; break;
case EINTR: msg = "EINTR: signal occured before transmission"; break;
case EINTR: msg = "EINTR: signal occurred before transmission"; break;
case EINVAL: msg = "EINVAL: invalid argument"; break;
case EMSGSIZE: msg = "EMSGSIZE: message cannot be sent atomically"; break;
case ENOBUFS: msg = "ENOBUFS: output queue is full"; break;

View File

@ -36,7 +36,7 @@ namespace cert {
certificateException::certificateException()
: exception("A problem occured with a certificate.")
: exception("A problem occurred with a certificate.")
{
}

View File

@ -69,7 +69,7 @@ public:
* @param responseLen length of response buffer
* @return true if authentication terminated successfully, or
* false if the authentication process should continue
* @throw exceptions::sasl_exception if an error occured during
* @throw exceptions::sasl_exception if an error occurred during
* authentication (in this case, the values in 'response' and
* 'responseLen' are undetermined)
*/
@ -105,7 +105,7 @@ public:
* @param output output buffer (allocated bu the function,
* free with delete[])
* @param outputLen length of output buffer
* @throw exceptions::sasl_exception if an error occured during
* @throw exceptions::sasl_exception if an error occurred during
* the encoding of data (in this case, the values in 'output' and
* 'outputLen' are undetermined)
*/
@ -122,7 +122,7 @@ public:
* @param output output buffer (allocated bu the function,
* free with delete[])
* @param outputLen length of output buffer
* @throw exceptions::sasl_exception if an error occured during
* @throw exceptions::sasl_exception if an error occurred during
* the encoding of data (in this case, the values in 'output' and
* 'outputLen' are undetermined)
*/

View File

@ -108,7 +108,7 @@ public:
* @param responseLen length of response buffer
* @return true if authentication terminated successfully, or
* false if the authentication process should continue
* @throw exceptions::sasl_exception if an error occured during
* @throw exceptions::sasl_exception if an error occurred during
* authentication (in this case, the values in 'response' and
* 'responseLen' are undetermined)
*/