DotNet.Ships.Class.LoadoutEditException - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / LoadoutEditException

Class: LoadoutEditException

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:30

An edit the current hull or build constraints cannot accept.

Remarks

Read Code, then Constraint and the properties beside it, rather than parsing the English fallback in the message.

Constructors

new LoadoutEditException()

new LoadoutEditException(message, code, issue?, slot?)

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:39

Builds an exception describing a refused edit.

Parameters

message

string

The English fallback, fit for a log.

code

LoadoutEditErrorCode

The stable category for the refusal.

issue

LoadoutIssue? = null

The finding the refusal reports, which names the mount and the module.

slot

string? = null

The mount the refusal is about, where the finding does not already name it.

new LoadoutEditException()

new LoadoutEditException()

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:52

Builds an exception with the default message for a code.

new LoadoutEditException()

new LoadoutEditException(message)

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:59

Builds an exception with a message alone.

Parameters

message

string

The English fallback, fit for a log.

new LoadoutEditException()

new LoadoutEditException(message, innerException)

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:67

Builds an exception with a message and an inner cause.

Parameters

message

string

The English fallback, fit for a log.

innerException

Exception

The cause.

Properties

Code

Code: LoadoutEditErrorCode

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:71

The stable category for the refusal.

Constraint

Constraint: ModuleFitConstraint?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:80

The fitting rule an incompatible module broke, where one is known.

Issue

Issue: LoadoutIssue?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:74

The finding the refusal reports, which names the mount and the module.

Slot

Slot: string?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutEditing.cs:77

The mount the refusal is about.

⚠️ **GitHub.com Fallback** ⚠️