Custom Asteroids  1.9
A mod for Kerbal Space Program that lets users control where asteroids appear
Starstrider42.CustomAsteroids.Util Class Reference

General-purpose functions that don't belong elsewhere. More...

Static Public Member Functions

static void errorToPlayer (string format, params object[] param)
 Prints an error message visible to the player. More...
 
static void errorToPlayerLoc (string format, params object[] param)
 Prints an error message visible to the player. More...
 
static void errorToPlayer (Exception e, string summary)
 Prints an exception visible to the player. More...
 

Detailed Description

General-purpose functions that don't belong elsewhere.

Member Function Documentation

static void Starstrider42.CustomAsteroids.Util.errorToPlayer ( string  format,
params object []  param 
)
static

Prints an error message visible to the player.

Does not throw exceptions.

Parameters
formatThe error message, or a composite format string for the message.
paramAny parameters to place in the composite format string (optional).

Based on code from RemoteTech.

Deprecated:
This method does not support localization; use errorToPlayerLoc instead.
static void Starstrider42.CustomAsteroids.Util.errorToPlayer ( Exception  e,
string  summary 
)
static

Prints an exception visible to the player.

Does not throw exceptions.

Parameters
eThe exception to report.
summaryTop-level description of the problem, to be given before any exception messages.
static void Starstrider42.CustomAsteroids.Util.errorToPlayerLoc ( string  format,
params object []  param 
)
static

Prints an error message visible to the player.

Does not throw exceptions.

Parameters
formatThe error message, a localization tag, or a Lingoona format string for the message.
paramAny parameters to place in the format string (optional).

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