分离flv文件夹

This commit is contained in:
Harvey Zack committed 2018-12-14 16:32:25 +08:00
1 parent 2e0d70292b
commit f8400002c2
9 files changed
+339 -54

No files matched your search

@@ -0,0 +1,15 @@
export class FlvError extends Error {
constructor(message, context) {
super(message);
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, context || this.constructor);
}
this.name = 'FlvError';
}
}
export function errorHandle(condition, msg) {
if (!condition) {
throw new FlvError(msg);
}
}