C# Class Fan.Sys.Err

Err.
Inheritance: FanObj
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Свойство Type Description
val Val

Méthodes publiques

Méthode 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

Méthode Description
doDumpStack ( string msg, Exception err, int depth, StringWriter w ) : void

Method Details

@typeof() public méthode

public @typeof ( ) : Type
Résultat Type

Err() public méthode

public Err ( ) : System
Résultat System

Err() public méthode

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
Résultat System

Err() public méthode

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
Résultat System

cause() public méthode

public cause ( ) : Err
Résultat Err

dumpStack() public static méthode

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

dumpStack() public static méthode

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

dumpStack() public static méthode

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

dumpStack() public static méthode

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

fanToDotnet() public static méthode

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
Résultat string

make() public static méthode

public static make ( ) : Err
Résultat Err

make() public static méthode

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
Résultat Err

make() public static méthode

public static make ( string msg ) : Err
msg string
Résultat Err

make() public static méthode

public static make ( string msg, Err cause ) : Err
msg string
cause Err
Résultat Err

make() public static méthode

public static make ( string msg, Exception e ) : Err
msg string
e Exception
Résultat Err

make_() public static méthode

public static make_ ( Err self ) : void
self Err
Résultat void

make_() public static méthode

public static make_ ( Err self, string msg ) : void
self Err
msg string
Résultat void

make_() public static méthode

public static make_ ( Err self, string msg, Err cause ) : void
self Err
msg string
cause Err
Résultat void

msg() public méthode

public msg ( ) : string
Résultat string

rebase() public méthode

public rebase ( ) : Val
Résultat Val

toStr() public méthode

public toStr ( ) : string
Résultat string

trace() public méthode

public trace ( ) : Err
Résultat Err

trace() public méthode

public trace ( OutStream @out ) : Err
@out OutStream
Résultat Err

trace() public méthode

public trace ( OutStream @out, Map opt ) : Err
@out OutStream
opt Map
Résultat Err

trace() public méthode

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

traceToStr() public méthode

public traceToStr ( ) : string
Résultat string

Property Details

val public_oe property

public Val val
Résultat Val