소스 검색

clean code

Yuki Takei 7 년 전
부모
커밋
022a8d0e6c
1개의 변경된 파일0개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 12
      src/server/models/page.js

+ 0 - 12
src/server/models/page.js

@@ -61,18 +61,6 @@ const pageSchema = new mongoose.Schema({
 // apply plugins
 pageSchema.plugin(uniqueValidator);
 
-/**
- * The Exception class thrown when the user has no grant to see the page
- *
- * @class UserHasNoGrantException
- */
-class UserHasNoGrantException {
-  constructor(message, user) {
-    this.name = this.constructor.name;
-    this.message = message;
-    this.user = user;
-  }
-}
 
 class PageQueryBuilder {
   constructor(query) {