You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CmdLineException is deprecated, but instruction "Use {@link #CmdLineException(org.kohsuke.args4j.CmdLineParser, Localizable, java.lang.String...)" cannot be put to use.
Ok, so I want to use this enum Messages:
enum Messages implements Localizable {
But this cannot be used as it can be used only inside a package (missing public keyword). Therefore there is no other option than to use deprecated CmdLineException exception.
Therefore CmdLineException should not be deprecated or Messages should be public :-)
The text was updated successfully, but these errors were encountered:
@kohsuke This seems to be broken again. Messages is no longer public. What is the recommended way to create a simple CmdLineException with a message? The only obvious way right now is to create some throwaway Exception and pass it in to new CmdLineException("my message", ex). Is this really the intention?
CmdLineException is deprecated, but instruction "Use {@link #CmdLineException(org.kohsuke.args4j.CmdLineParser, Localizable, java.lang.String...)" cannot be put to use.
Localizable interface has javadoc @see Messages
Ok, so I want to use this enum Messages:
enum Messages implements Localizable {
But this cannot be used as it can be used only inside a package (missing public keyword). Therefore there is no other option than to use deprecated CmdLineException exception.
Therefore CmdLineException should not be deprecated or Messages should be public :-)
The text was updated successfully, but these errors were encountered: