Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide exception type name for custom exceptions #18

Closed
ombre42 opened this issue Jan 15, 2014 · 2 comments
Closed

Hide exception type name for custom exceptions #18

ombre42 opened this issue Jan 15, 2014 · 2 comments

Comments

@ombre42
Copy link
Collaborator

ombre42 commented Jan 15, 2014

From the user guide:

Starting from Robot Framework 2.8.2 it is possible to avoid adding the exception type as a prefix to failure message also with non generic exceptions. This is done by adding a special ROBOT_SUPPRESS_NAME attribute with value True to your exception.

public class MyError extends RuntimeException {
    public static final boolean ROBOT_SUPPRESS_NAME = true;
@pekkaklarck
Copy link
Member

Good catch! Added an issue to PythonRemoteServer too:
robotframework/PythonRemoteServer#6

@ombre42
Copy link
Collaborator Author

ombre42 commented Jan 15, 2014

@pekkaklarck Thanks!
I did not notice it when 2.8.2 came out because it was not in the release notes. It was implemented for a Telnet library issue fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants