Skip to content

Commit

Permalink
Merge pull request #55 from /issues/53-inherit-error
Browse files Browse the repository at this point in the history
refactor: changed NoSuchWindow to inherit from NotFoundError
  • Loading branch information
poftadeh authored Oct 8, 2019
2 parents c577384 + 69e8b47 commit 032e20a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Error/NoSuchWindow.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { WebDriverError } from './WebDriverError';
import { NotFoundError } from './NotFoundError';

export class NoSuchWindow extends WebDriverError {
export class NoSuchWindow extends NotFoundError {
constructor() {
super(404);
super();
this.message =
'A command to switch to a window could not be satisfied because the window could not be found.';
this.name = 'NoSuchWindowError';
Expand Down

0 comments on commit 032e20a

Please sign in to comment.