Annotation of truecrypt/main/userinterfaceexception.h, revision 1.1

1.1     ! root        1: /*
        !             2:  Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
        !             3: 
        !             4:  Governed by the TrueCrypt License 2.4 the full text of which is contained
        !             5:  in the file License.txt included in TrueCrypt binary and source code
        !             6:  distribution packages.
        !             7: */
        !             8: 
        !             9: #ifndef TC_HEADER_Main_UserInterfaceException
        !            10: #define TC_HEADER_Main_UserInterfaceException
        !            11: 
        !            12: #include "Platform/Platform.h"
        !            13: 
        !            14: namespace TrueCrypt
        !            15: {
        !            16:        TC_EXCEPTION_DECL (UserInterfaceException, Exception);
        !            17:        TC_EXCEPTION_DECL (MissingArgument, UserInterfaceException);
        !            18:        TC_EXCEPTION_DECL (StringFormatterException, UserInterfaceException);
        !            19:        TC_EXCEPTION_DECL (UserAbort, UserInterfaceException);
        !            20: 
        !            21:        struct ErrorMessage : public UserInterfaceException
        !            22:        {
        !            23:                ErrorMessage (const string &exceptionMessage, const wxString &errorMessage) : UserInterfaceException (exceptionMessage), Text (errorMessage) { }
        !            24:                virtual ~ErrorMessage () throw () { }
        !            25: 
        !            26:                operator wstring () const { return wstring (Text); }
        !            27:                operator wxString () const { return Text; }
        !            28: 
        !            29:        protected:
        !            30:                wxString Text;
        !            31:        };
        !            32: 
        !            33: #define throw_err(message) throw ErrorMessage (SRC_POS, (message))
        !            34: }
        !            35: 
        !            36: #endif // TC_HEADER_Main_UserInterfaceException

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.