MitocGroup/deep-framework

View on GitHub
src/deep-core/lib/Exception/DatabaseOperationException.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

import {Exception} from './Exception';

/**
 * Thrown when operation on the database failed
 */
export class DatabaseOperationException extends Exception {

  /**
   * @param {String} error
   */
  constructor(error) {
    super(`Database operation failed. ${error}`, 500);
  }
}