hjplayer
Version:
hjplayer, a HTML5 Player, can play flv and hls by Media Source Extension, based on typescript;
53 lines (42 loc) • 934 B
text/typescript
/**
* 定义异常
*/
export class RuntimeException {
_message: string
constructor(message: string) {
this._message = message;
}
get name() {
return 'RuntimeException';
}
get message() {
return this._message;
}
toString() {
return `${this.name}: ${this.message}`;
}
}
export class IllegalStateException extends RuntimeException {
constructor(message: string) {
super(message);
}
get name() {
return 'IllegalStateException';
}
}
export class InvalidArgumentException extends RuntimeException {
constructor(message: string) {
super(message);
}
get name() {
return 'InvalidArgumentException';
}
}
export class NotImplementedException extends RuntimeException {
constructor(message: string) {
super(message);
}
get name() {
return 'NotImplementedException';
}
}