Skip to content

Commit

Permalink
[Java] Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Oct 14, 2020
1 parent 6a47820 commit 77165f2
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public AeronException(final String message)
/**
* Aeron exception with provided cause and {@link Category#ERROR}.
*
* @param cause of the error.
* @param cause of the error.
*/
public AeronException(final Throwable cause)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,77 @@
*/
public class TimeoutException extends AeronException
{
/**
* Default timeout exception of {@link Category#ERROR}.
*/
public TimeoutException()
{
}

/**
* Timeout exception with provided message and {@link Category#ERROR}.
*
* @param message to detail the exception.
*/
public TimeoutException(final String message)
{
super(message);
}

/**
* Timeout Aeron exception with provided {@link Category}.
*
* @param category of this exception.
*/
public TimeoutException(final Category category)
{
super(category);
}

/**
* Timeout exception with a detailed message and provided {@link Category}.
*
* @param message providing detail on the error.
* @param category of the exception.
*/
public TimeoutException(final String message, final Category category)
{
super(message, category);
}

public TimeoutException(final String message, final Throwable cause, final Category category)
/**
* AerTimeouton exception with cause and provided {@link Category}.
*
* @param cause of the error.
* @param category of the exception.
*/
public TimeoutException(final Throwable cause, final Category category)
{
super(message, cause, category);
super(cause, category);
}

public TimeoutException(final Throwable cause, final Category category)
/**
* Timeout exception with a detailed message, cause, and {@link Category}.
*
* @param message providing detail on the error.
* @param cause of the error.
* @param category of the exception.
*/
public TimeoutException(final String message, final Throwable cause, final Category category)
{
super(cause, category);
super(message, cause, category);
}

/**
* Constructs a new timeout exception with the a detail message, cause, suppression enabled or disabled,
* writable stack trace enabled or disabled, an {@link Category}.
*
* @param message providing detail on the error.
* @param cause of the error.
* @param enableSuppression is suppression enabled or not.
* @param writableStackTrace is the stack trace writable or not.
* @param category of the exception.
*/
protected TimeoutException(
final String message,
final Throwable cause,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,54 @@
*/
public class AuthenticationException extends AeronException
{
/**
* Default exception of {@link Category#ERROR}.
*/
public AuthenticationException()
{
super();
}

/**
* Authentication exception with provided message and {@link Category#ERROR}.
*
* @param message to detail the exception.
*/
public AuthenticationException(final String message)
{
super(message);
}

public AuthenticationException(final String message, final Throwable cause)
/**
* Authentication exception with provided cause and {@link Category#ERROR}.
*
* @param cause of the error.
*/
public AuthenticationException(final Throwable cause)
{
super(message, cause);
super(cause);
}

public AuthenticationException(final Throwable cause)
/**
* Authentication exception with a detailed message and cause.
*
* @param message providing detail on the error.
* @param cause of the error.
*/
public AuthenticationException(final String message, final Throwable cause)
{
super(cause);
super(message, cause);
}

/**
* Constructs a new Authentication exception with the a detail message, cause, suppression enabled or disabled,
* and writable stack trace enabled or disabled, in the category {@link Category#ERROR}.
*
* @param message providing detail on the error.
* @param cause of the error.
* @param enableSuppression is suppression enabled or not.
* @param writableStackTrace is the stack trace writable or not.
*/
protected AuthenticationException(
final String message, final Throwable cause, final boolean enableSuppression, final boolean writableStackTrace)
{
Expand Down

0 comments on commit 77165f2

Please sign in to comment.