Joutsen.ArgumentsParsing v0.3.0+1-ga4c84ed
Public Member Functions | List of all members
Joutsen.ArgumentsParsing.WritableException Class Reference

A generic exception that is able to write its error message to a stream. More...

Public Member Functions

 WritableException (string message, Exception innerException)
 Creates an instance with an error message and an exception that is the cause for this exception to be raised. More...
 
 WritableException (string message)
 Creates an instance with an error message. More...
 
 WritableException ()
 Creates an empty exception. More...
 
void Write (Stream stream, Encoding encoding=null)
 Writes the errror message of this exception to a stream. More...
 
void Write (TextWriter writer)
 Writes the error message of this exception using a TextWriter. More...
 
void Write ()
 Writes the error message of this exception to stdout. More...
 

Detailed Description

A generic exception that is able to write its error message to a stream.

Since
0.1.0

Constructor & Destructor Documentation

◆ WritableException() [1/3]

Joutsen.ArgumentsParsing.WritableException.WritableException ( string  message,
Exception  innerException 
)

Creates an instance with an error message and an exception that is the cause for this exception to be raised.

◆ WritableException() [2/3]

Joutsen.ArgumentsParsing.WritableException.WritableException ( string  message)

Creates an instance with an error message.

◆ WritableException() [3/3]

Joutsen.ArgumentsParsing.WritableException.WritableException ( )

Creates an empty exception.

Member Function Documentation

◆ Write() [1/3]

void Joutsen.ArgumentsParsing.WritableException.Write ( )

Writes the error message of this exception to stdout.

◆ Write() [2/3]

void Joutsen.ArgumentsParsing.WritableException.Write ( Stream  stream,
Encoding  encoding = null 
)

Writes the errror message of this exception to a stream.

Parameters
streamthe stream to write to
encodingthe encoding to use when writing

◆ Write() [3/3]

void Joutsen.ArgumentsParsing.WritableException.Write ( TextWriter  writer)

Writes the error message of this exception using a TextWriter.

Parameters
writerthe text writer to use