Skip to content
Snippets Groups Projects

Harmonize and document events errors and calls

Merged Benjamin Gallois requested to merge bgallois/duniter-v2s:refactor_events into master
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
@@ -165,15 +165,21 @@ pub mod pallet {
@@ -165,15 +165,21 @@ pub mod pallet {
#[pallet::error]
#[pallet::error]
pub enum Error<T> {
pub enum Error<T> {
 
/// Distance already in evaluation for caller.
AlreadyInEvaluation,
AlreadyInEvaluation,
CannotReserve,
/// Too many evaluation requests for this author.
ManyEvaluationsByAuthor,
ManyEvaluationsByAuthor,
 
/// Too many evaluations for this block.
ManyEvaluationsInBlock,
ManyEvaluationsInBlock,
 
/// No author for this block.
NoAuthor,
NoAuthor,
 
/// Caller has no identity.
NoIdentity,
NoIdentity,
NonEligibleForEvaluation,
/// Evaluation queue is full.
QueueFull,
QueueFull,
 
/// Too many evaluators in the current evaluation pool.
TooManyEvaluators,
TooManyEvaluators,
 
/// Evaluation result has a wrong length.
WrongResultLength,
WrongResultLength,
}
}
Loading