Custom Asteroids  1.1.0
A mod for Kerbal Space Program that lets users control where asteroids appear
 All Classes Namespaces Files Functions Variables Enumerations Properties Pages
AsteroidManager.BadPopulationException Class Reference

Exception indicating that a Population is in an invalid state. More...

+ Inheritance diagram for AsteroidManager.BadPopulationException:

Public Member Functions

 BadPopulationException ()
 Constructs an exception with no specific information. More...
 
 BadPopulationException (Population which)
 Constructs an exception with a reference to the invalid Population. More...
 
 BadPopulationException (Population which, string message)
 Constructs an exception with a reference to the invalid Population. More...
 
 BadPopulationException (Population which, string message, Exception inner)
 Constructs an exception with a reference to the invalid Population. More...
 
Population getPop ()
 Provides the invalid Population that triggered the exception. More...
 

Protected Member Functions

 BadPopulationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 Constructs an exception with a reference to the invalid Population. More...
 

Private Attributes

Population badPop
 The invalid Population that triggered the exception.
 

Detailed Description

Exception indicating that a Population is in an invalid state.

Constructor & Destructor Documentation

Constructs an exception with no specific information.

Exception Safety
Does not throw exceptions

Constructs an exception with a reference to the invalid Population.

Parameters
[in]whichThe population that triggered the exception
Postcondition
getPop() = which
Exception Safety
Does not throw exceptions
BadPopulationException ( Population  which,
string  message 
)

Constructs an exception with a reference to the invalid Population.

Parameters
[in]whichThe population that triggered the exception
[in]messageA description of the detected problem
Postcondition
getPop() = which
base.Message = message
Exception Safety
Does not throw exceptions
See Also
InvalidOperationException(string)
BadPopulationException ( Population  which,
string  message,
Exception  inner 
)

Constructs an exception with a reference to the invalid Population.

Parameters
[in]whichThe population that triggered the exception
[in]messageA description of the detected problem
[in]innerThe exception thrown when the problem was detected
Postcondition
getPop() = which
base.Message = message
base.InnerException = inner
Exception Safety
Does not throw exceptions
See Also
InvalidOperationException(string, Exception)
BadPopulationException ( System.Runtime.Serialization.SerializationInfo  info,
System.Runtime.Serialization.StreamingContext  context 
)
protected

Constructs an exception with a reference to the invalid Population.

Parameters
[in]infoThe object that holds the serialized object data.
[in]contextThe contextual information about the source or destination.
Exception Safety
Does not throw exceptions
See Also
InvalidOperationException(SerializationInfo, StreamingContext)

Member Function Documentation

Population getPop ( )

Provides the invalid Population that triggered the exception.

Returns
A reference to the faulty object, or null if no object was stored.
Exception Safety
Does not throw exceptions

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