Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Added coroutine related exception class [WIP] #817

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions python/common/org/python/exceptions/asyncio/InvalidStateError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.python.exceptions.asyncio;

/**
* The operation is not allowed in this state.
*/
public class InvalidStateError extends org.python.exceptions.concurrent.Error {
public InvalidStateError(java.lang.String msg) {
super(msg);
}
}
10 changes: 10 additions & 0 deletions python/common/org/python/exceptions/concurrent/CancelledError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.python.exceptions.concurrent;

/**
* The Future was cancelled.
*/
public class CancelledError extends org.python.exceptions.concurrent.Error {
public CancelledError() {
super();
}
}
14 changes: 14 additions & 0 deletions python/common/org/python/exceptions/concurrent/Error.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.python.exceptions.concurrent;

/**
* Base class for all future-related exceptions.
*/
public class Error extends org.python.exceptions.Exception {
Error() {
super();
}

public Error(java.lang.String msg) {
super(msg);
}
}
10 changes: 10 additions & 0 deletions python/common/org/python/exceptions/concurrent/TimeoutError.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.python.exceptions.concurrent;

/**
* The operation exceeded the given deadline.
*/
public class TimeoutError extends org.python.exceptions.concurrent.Error {
public TimeoutError() {
super();
}
}