- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.alexdlaird.exception.JavaNgrokException
-
- com.github.alexdlaird.exception.NgrokException
-
- All Implemented Interfaces:
java.io.Serializable
public class NgrokException extends JavaNgrokException
Thrown fromNgrokProcesswhen an error occurs interacting directly with thengrokbinary.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NgrokException(java.lang.String message)An exception with a message.NgrokException(java.lang.String message, java.lang.Throwable cause)An exception with a message and a root cause.NgrokException(java.lang.String message, java.util.List<NgrokLog> ngrokLogs)An exception with a message andngroklogs.NgrokException(java.lang.String message, java.util.List<NgrokLog> ngrokLogs, java.lang.String ngrokError)An exception with a message,ngroklogs, and the error that causedngrokto fail.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNgrokError()Get The error that caused thengrokprocess to fail.java.util.List<NgrokLog>getNgrokLogs()Get thengroklogs, which may be useful for debugging.
-
-
-
Constructor Detail
-
NgrokException
public NgrokException(java.lang.String message)
An exception with a message.- Parameters:
message- The message describing the exception.
-
NgrokException
public NgrokException(java.lang.String message, java.lang.Throwable cause)An exception with a message and a root cause.- Parameters:
message- The message describing the exception.cause- The initial cause of the exception.
-
NgrokException
public NgrokException(java.lang.String message, java.util.List<NgrokLog> ngrokLogs)An exception with a message andngroklogs.- Parameters:
message- The message describing the exception.ngrokLogs- Thengroklogs.
-
NgrokException
public NgrokException(java.lang.String message, java.util.List<NgrokLog> ngrokLogs, java.lang.String ngrokError)An exception with a message,ngroklogs, and the error that causedngrokto fail.- Parameters:
message- The message describing the exception.ngrokLogs- Thengroklogs.ngrokError- The error that caused thengrokprocess to fail.
-
-
Method Detail
-
getNgrokLogs
public java.util.List<NgrokLog> getNgrokLogs()
Get thengroklogs, which may be useful for debugging.
-
getNgrokError
public java.lang.String getNgrokError()
Get The error that caused thengrokprocess to fail.
-
-