C# Class Fan.Sys.Err

Err.
Inheritance: FanObj
Mostrar archivo Open project: xored/f4 Class Usage Examples

Public Properties

Property Type Description
val Val

Public Methods

Method Description
@typeof ( ) : Type
Err ( ) : System
Err ( Val val ) : System

All subclasses must call this constructor with their typed Val exception which the real .NET exception we use.

Err ( Val val, Exception actual ) : System

This constructor is used by special subclasses which provide a transparent mapping between .NET and Fantom exception types.

cause ( ) : Err
dumpStack ( Exception err ) : void

Dump a readable stack trace.

dumpStack ( Exception err, OutStream @out ) : void

Dump a readable stack trace.

dumpStack ( string msg, Exception err, OutStream @out, int indent ) : void
dumpStack ( string msg, Exception err, int indent ) : void
fanToDotnet ( string ftype ) : string

This method is used by FCodeEmit to generate extra entries in the exception table - for example if fcode says to trap NullErr, then we also need to trap System.NullReferenceException. Basically this is the inverse of the mapping done in make(Exception).

make ( ) : Err
make ( Exception ex ) : Err

Map a java exception to it's Fantom Err counter part. Common runtime exceptions are mapped into explicit Fantom types. Otherwise we just wrap the exception with a generic Err.

make ( string msg ) : Err
make ( string msg, Err cause ) : Err
make ( string msg, Exception e ) : Err
make_ ( Err self ) : void
make_ ( Err self, string msg ) : void
make_ ( Err self, string msg, Err cause ) : void
msg ( ) : string
rebase ( ) : Val
toStr ( ) : string
trace ( ) : Err
trace ( OutStream @out ) : Err
trace ( OutStream @out, Map opt ) : Err
trace ( OutStream @out, Map opt, int indent, bool useActual ) : Err
traceToStr ( ) : string

Private Methods

Method Description
doDumpStack ( string msg, Exception err, int depth, StringWriter w ) : void

Method Details

@typeof() public method

public @typeof ( ) : Type
return Type

Err() public method

public Err ( ) : System
return System

Err() public method

All subclasses must call this constructor with their typed Val exception which the real .NET exception we use.
public Err ( Val val ) : System
val Val
return System

Err() public method

This constructor is used by special subclasses which provide a transparent mapping between .NET and Fantom exception types.
public Err ( Val val, Exception actual ) : System
val Val
actual System.Exception
return System

cause() public method

public cause ( ) : Err
return Err

dumpStack() public static method

Dump a readable stack trace.
public static dumpStack ( Exception err ) : void
err System.Exception
return void

dumpStack() public static method

Dump a readable stack trace.
public static dumpStack ( Exception err, OutStream @out ) : void
err System.Exception
@out OutStream
return void

dumpStack() public static method

public static dumpStack ( string msg, Exception err, OutStream @out, int indent ) : void
msg string
err System.Exception
@out OutStream
indent int
return void

dumpStack() public static method

public static dumpStack ( string msg, Exception err, int indent ) : void
msg string
err System.Exception
indent int
return void

fanToDotnet() public static method

This method is used by FCodeEmit to generate extra entries in the exception table - for example if fcode says to trap NullErr, then we also need to trap System.NullReferenceException. Basically this is the inverse of the mapping done in make(Exception).
public static fanToDotnet ( string ftype ) : string
ftype string
return string

make() public static method

public static make ( ) : Err
return Err

make() public static method

Map a java exception to it's Fantom Err counter part. Common runtime exceptions are mapped into explicit Fantom types. Otherwise we just wrap the exception with a generic Err.
public static make ( Exception ex ) : Err
ex Exception
return Err

make() public static method

public static make ( string msg ) : Err
msg string
return Err

make() public static method

public static make ( string msg, Err cause ) : Err
msg string
cause Err
return Err

make() public static method

public static make ( string msg, Exception e ) : Err
msg string
e Exception
return Err

make_() public static method

public static make_ ( Err self ) : void
self Err
return void

make_() public static method

public static make_ ( Err self, string msg ) : void
self Err
msg string
return void

make_() public static method

public static make_ ( Err self, string msg, Err cause ) : void
self Err
msg string
cause Err
return void

msg() public method

public msg ( ) : string
return string

rebase() public method

public rebase ( ) : Val
return Val

toStr() public method

public toStr ( ) : string
return string

trace() public method

public trace ( ) : Err
return Err

trace() public method

public trace ( OutStream @out ) : Err
@out OutStream
return Err

trace() public method

public trace ( OutStream @out, Map opt ) : Err
@out OutStream
opt Map
return Err

trace() public method

public trace ( OutStream @out, Map opt, int indent, bool useActual ) : Err
@out OutStream
opt Map
indent int
useActual bool
return Err

traceToStr() public method

public traceToStr ( ) : string
return string

Property Details

val public_oe property

public Val val
return Val