Skip to main content

PurchaseError

A class in Root.Township, Features.Main_Menu.Scripts.TalemShop.Errors.

Base for an error from the Talem shop (the in-game store), made from an exception or a message.

Constructors​

MemberWhat it is
protected PurchaseError(Exception exception)Creates a PurchaseError from message.
protected PurchaseError(string message)Creates a PurchaseError from message.

Fields​

1 private and internal field
MemberWhat it is
private readonly string messageError text given to the constructor; Message returns the exception's message instead when there is one.

Properties​

MemberWhat it is
Exception Exception { get; }The exception behind the error, if any.
string Message { get; }The exception's message, or the stored message if there is no exception.

Used in​

Members of other types that take, return or hold a PurchaseError: