Gorgon Game Engine
WriteError Class Reference

This error is fired to a write operations. More...

Inheritance diagram for WriteError:
[legend]

Public Types

enum  ErrorType { Unknown, CannotOpenFile, NoData }
 Error types. More...
 

Public Member Functions

 WriteError (ErrorType number, const std::string &text)
 A constructor to allow custom text for the error. More...
 
 WriteError (ErrorType number=Unknown)
 Regular constructor, creates error text to error number. More...
 

Public Attributes

ErrorType number
 The type of loading error occurred. More...
 

Static Public Attributes

static const std::string ErrorStrings [3]
 Strings for error codes. More...
 

Detailed Description

This error is fired to a write operations.

Member Enumeration Documentation

◆ ErrorType

enum ErrorType

Error types.

Enumerator
Unknown 

The cause of the error cannot be determined.

CannotOpenFile 

The given file cannot be opened, probably its path does not exists or the operation is denied.

NoData 

There is no data to save.

Constructor & Destructor Documentation

◆ WriteError() [1/2]

WriteError ( ErrorType  number = Unknown)

Regular constructor, creates error text to error number.

◆ WriteError() [2/2]

WriteError ( ErrorType  number,
const std::string &  text 
)

A constructor to allow custom text for the error.

Member Data Documentation

◆ ErrorStrings

const std::string ErrorStrings
static

Strings for error codes.

◆ number

ErrorType number

The type of loading error occurred.


The documentation for this class was generated from the following files: