generated from AthennaIO/Template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): transactions, models, criterias and relations
- Loading branch information
Showing
21 changed files
with
2,153 additions
and
124 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @athenna/database | ||
* | ||
* (c) João Lenon <lenon@athenna.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
import { Exception } from '@secjs/utils' | ||
|
||
export class NotImplementedDefinitionException extends Exception { | ||
/** | ||
* Creates a new instance of NotImplementedDefinitionException. | ||
* | ||
* @return {NotImplementedDefinitionException} | ||
*/ | ||
constructor(modelName) { | ||
const content = `You have not implemented the "static definition()" method inside your ${modelName} model.` | ||
|
||
super( | ||
content, | ||
500, | ||
'E_NOT_IMPLEMENTED_DEFINITION_ERROR', | ||
`Open you ${modelName} model and write your "static definition()" method using the "faker" method.`, | ||
) | ||
} | ||
} |
Oops, something went wrong.