pigmeo-compiler : Pigmeo.Compiler Namespace

ErrorsAndWarnings Class

Stuff about errors and warnings that can be thrown when running pigmeo-compiler

public class ErrorsAndWarnings


Remarks

.NET exception handling is not used for these kind of errors because it is not able to throw warnings and non-fatal errors without adding a lot of try-catch blocks everywhere and sometimes we only want to show a message

Members

See Also: Inherited members from object.

Constructors

Fields

TotalErrors
static
uint . Gets the total amount of errors thrown

Properties

TotalWarnings [read-only]
static
uint . Gets the total amount of warnings shown

Methods

static LoadErrAndWarnStrings ()
Fills the list of errors and warnings available for tha current language. It must be called each time the language is changed or the strings will continue being printed in the previous language
static Throw (ErrorsAndWarnings.errType, string, bool, params string[])
Shows a message with info about the error or warning

Member Details

ErrorsAndWarnings Constructor

public ErrorsAndWarnings ()

Initializes the Pigmeo.Compiler.ErrorsAndWarnings class.

Remarks

To be added.

Required Assembly Versions:

  • pigmeo-compiler 0.0.0.0

LoadErrAndWarnStrings Method

public static void LoadErrAndWarnStrings ()

Fills the list of errors and warnings available for tha current language. It must be called each time the language is changed or the strings will continue being printed in the previous language

Remarks

To be added.

Required Assembly Versions:

  • pigmeo-compiler 0.0.0.0

Throw Method

public static void Throw (ErrorsAndWarnings.errType type, string ID, bool exit, params string[] p)

Shows a message with info about the error or warning

Parameters

type
Type (error or warning)
ID
Its ID (i.e. CFG0032)
exit
Specifies if the execution must be stopped (set true for fatal errors)
p
Miscellaneus extra information shown to the user. Remember: this string is language-dependent, but if ID=="INT0001" you don't need to translate it because it's only useful for developers.

Remarks

To be added.

Required Assembly Versions:

  • pigmeo-compiler 0.0.0.0

TotalErrors Field

public static uint TotalErrors

Gets the total amount of errors thrown

Remarks

To be added.

Required Assembly Versions:

  • pigmeo-compiler 0.0.0.0

TotalWarnings Property

public static uint TotalWarnings { get; }

Gets the total amount of warnings shown

Value

To be added.

Remarks

To be added.

Required Assembly Versions:

  • pigmeo-compiler 0.0.0.0