org.jvnet.ws.wadl.util
Interface MessageListener


public interface MessageListener

A public class that allows an implementor to deal with messages output by the generator. Also allow us to remove a direct API dependency on the internals of generator.

Author:
gdavison

Method Summary
 void error(String message, Throwable throwable)
          Report an error.
 void info(String message)
          Report informative message.
 void warning(String message, Throwable throwable)
          Report a warning.
 

Method Detail

warning

void warning(String message,
             Throwable throwable)
Report a warning.

Parameters:
message - The message to display to the user, if null the message from the throwable is used instead.
throwable - The exception that triggered this message, can be null if the message is not null.

info

void info(String message)
Report informative message.

Parameters:
message - The message to display to the user.

error

void error(String message,
           Throwable throwable)
Report an error.

Parameters:
message - The message to display to the user, if null the message from the throwable is used instead.
throwable - The exception that triggered this message, can be null if the message is not null.


Copyright © 2012. All Rights Reserved.