C# Class Exceptions.ExceptionImplementation

不正な入力に対して例外を出す実装。
「不正な入力をはじくのはメソッドの手前で、メソッドを呼ぶ側が責任を持ってやれ」という場合はこういう実装にする。 実のところ、この手の例外はあんまりcatchしない。「例外が出る状況 = バグってる」というタイプの例外。デバッグで取りきる。
Mostra file Open project: ufcpp/UfcppSample

Public Methods

Method Description
Main ( ) : void

Private Methods

Method Description
CharToInt ( char c ) : int

文字→整数

StringToInt ( string str ) : int

文字列→整数

Method Details

Main() public static method

public static Main ( ) : void
return void