AssertionFailedException.js 493 B

123456789101112131415
  1. import RuntimeException from '../../../../java/lang/RuntimeException'
  2. export default class AssertionFailedException extends RuntimeException {
  3. constructor() {
  4. super()
  5. AssertionFailedException.constructor_.apply(this, arguments)
  6. }
  7. static constructor_() {
  8. if (arguments.length === 0) {
  9. RuntimeException.constructor_.call(this)
  10. } else if (arguments.length === 1) {
  11. const message = arguments[0]
  12. RuntimeException.constructor_.call(this, message)
  13. }
  14. }
  15. }