import ExtendableError from 'es6-error';

export default class MeaningError extends ExtendableError {
  constructor(message = 'Server Error') {
    super(message);

    this.message = message;

    if (!this.code) {
      this.code = 500;
    }
  }

  getCode() {
    return this.code;
  }

  getMessage() {
    return this.message;
  }
}

import ExtendableError from 'es6-error';

export default class MeaningError extends ExtendableError {
  constructor(message = 'Server Error') {
    super(message);

    this._message = message;

    if (!this.code) {
      this.code = 500;
    }
  }

  getCode() {
    return this.code;
  }

  getMessage() {
    return this._message;
  }
}

Fix not use message from inheritance class
Fix not use message from inheritance class
