home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
a7xpg0_11.zip
/
a7xpg
/
src
/
abagames
/
util
/
Logger.d
< prev
next >
Wrap
Text File
|
2003-09-20
|
815b
|
35 lines
/*
* $Id: Logger.d,v 1.2 2003/09/20 04:04:06 kenta Exp $
*
* Copyright 2003 Kenta Cho. All rights reserved.
*/
module abagames.util.Logger;
import stream;
/**
* Logger(error/info).
*/
public class Logger {
public static void info(char[] msg) {
stderr.writeLine("Info: " ~ msg);
}
public static void error(char[] msg) {
//stderr.writeLine("Error: " ~ msg);
throw new Exception("Error: " ~ msg ~ "\0");
}
public static void error(Exception e) {
//stderr.writeLine("Error: " ~ e.toString());
throw new Exception("Error: " ~ e.toString() ~ "\0");
}
public static void error(Error e) {
//stderr.writeLine("Error: " ~ e.toString());
//if (e.next)
// error(e.next);
throw new Exception("Error: " ~ e.toString() ~ "\0");
}
}