Christopher Piro | 2f5afce | 2007-06-29 07:17:33 +0000 | [diff] [blame^] | 1 | -module(tProtocolException). |
2 | -include("tProtocolException.hrl"). | ||||
3 | -export([new/2, new/1, new/0]). | ||||
4 | |||||
5 | new(Type, Message) -> | ||||
6 | #tProtocolException{type=Type, message=Message}. | ||||
7 | |||||
8 | new(Type) -> new(Type, nil). | ||||
9 | new() -> new(?tProtocolException_UNKNOWN, nil). |