Home
Getting started
Components overview
Topics
Components
Classes
Tutorials and Examples
Code snippets
Support
Error.h
1
//##################################################################################################
2
//
3
// Ceetron Desktop Components
4
// Component: UnstructGrid
5
//
6
// --------------------------------------------------------------------------------------------
7
// Copyright (C) 2011, Ceetron AS
8
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9
// not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10
// without the prior written permission of Ceetron AS.
11
//##################################################################################################
12
13
#pragma once
14
15
#include "CeeUnstructGrid/Base.h"
16
#include "CeeCore/Str.h"
17
18
namespace
cee
{
19
namespace
ug {
20
21
22
//==================================================================================================
23
//
24
//
25
//
26
//==================================================================================================
27
class
CEE_UG_EXPORT
Error
28
{
29
public
:
31
enum
Code
32
{
33
ERR_NOT_SET
,
34
ERR_ABORTED_BY_USER
,
35
ERR_INCONSISTENT_DATA
,
36
37
ERR_FILE_NOT_FOUND
,
38
ERR_FILE_OPEN
,
39
ERR_FILE_READ
,
40
ERR_FILE_UNSUPPORTED_FILE_TYPE
,
41
ERR_FILE_INVALID_FORMAT
,
42
ERR_VTFX_WRONG_PASSWORD
43
};
44
45
public
:
46
Error
();
47
48
Code
errorCode()
const
;
49
void
setErrorCode(
Code
errorCode);
50
51
static
void
safeSetErrorCode(
Error
* errorObj,
Code
errorCode);
52
53
private
:
54
Code
m_errorCode;
55
};
56
57
}
// namespace ug
58
}
// namespace cee
59
cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition:
AppComponent.cpp:26
cee::ug::Error::ERR_FILE_NOT_FOUND
File not found.
Definition:
Error.h:37
cee::ug::Error::ERR_FILE_UNSUPPORTED_FILE_TYPE
Unsupported file type. E.g. Not a VTF file.
Definition:
Error.h:40
cee::ug::Error::Code
Code
Available error codes.
Definition:
Error.h:31
cee::ug::Error::ERR_FILE_OPEN
Error opening file
Definition:
Error.h:38
cee::ug::Error::ERR_NOT_SET
Error not set
Definition:
Error.h:33
cee::ug::Error::ERR_INCONSISTENT_DATA
Inconsistent data.
Definition:
Error.h:35
cee::ug::Error::ERR_FILE_READ
Error reading file
Definition:
Error.h:39
cee::ug::Error::ERR_FILE_INVALID_FORMAT
Internal errors in the file. File does not comply to the file specification.
Definition:
Error.h:41
cee::ug::Error
Error object for simple error management
Definition:
Error.h:27
cee::ug::Error::ERR_ABORTED_BY_USER
Aborted by user.
Definition:
Error.h:34
CeeUnstructGrid
Error.h
Updated: Fri Dec 17 2021 - Copyright © 2021 Ceetron AS