Modify HttpUrl and JsonException
This commit is contained in:
parent
f5731d9776
commit
2f075c7e26
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Reference in a new issue