Modify HttpUrl and JsonException

This commit is contained in:
Kegan Myers 2014-02-28 11:27:20 -06:00
parent f5731d9776
commit 2f075c7e26
2 changed files with 18 additions and 0 deletions

View File

@ -13,9 +13,13 @@ module Typertext.Http {
};
/**
* A common interface for building a URL into something that can easily be decomposed for a client
*
* @param protocol
* @returns {number}
*
* @author Kegan Myers <kegan@keganmyers.com>
* @version 0.3.0
* @constructor
*/
public static DefaultPort(protocol:HttpProtocol) {

View File

@ -1,5 +1,19 @@
/**
* @namespace Typertext
* @module Json
*/
module Typertext.Json {
export class JsonException extends Typertext.BaseException<void> {
/**
* The exception that will be raised when a problem has occurred in the Json module
*
* @param {string} message
* @param {number} code
*
* @author Kegan Myers <kegan@keganmyers.com>
* @version 0.3.0
* @constructor
*/
constructor(message:string, code:number) {
super(message, code, null);
}