create a java exception
public class ItemNotInStock extends Exception {
public IncorrectFileNameException(String errorMessage) {
super(errorMessage);
}
}
create a java exception
public class ItemNotInStock extends Exception {
public IncorrectFileNameException(String errorMessage) {
super(errorMessage);
}
}
Where did you manually create an exception?
In Driver Class. Basically I am getting Browser Name
from ConfiguratinProperty. If some invalid browser names
are giving in that propertyfiles is your task is it still
gonna run? Is it gonna throw exception? It is going to throw
exception message such as Nosuchbrowser. In the Driver Clas
is none of the names are match with valid browsers than I can
Throw this exception manually.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us