forked from openclarity/apiclarity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/modules_infra_v2_basic_modules' …
…into modules_infra_v2_basic_modules
- Loading branch information
Showing
14 changed files
with
1,223 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,47 @@ | ||
package fuzzer | ||
|
||
import "fmt" | ||
|
||
/* | ||
* Error used when an object does not exists on the system | ||
*/ | ||
type NotFoundError struct { | ||
msg string | ||
} | ||
|
||
func (e *NotFoundError) Error() string { | ||
return fmt.Sprintf("Not found error: %v", e.msg) | ||
} | ||
|
||
/* | ||
* Error used when action is impossible because nor enough parameters of invalid parameter | ||
*/ | ||
type InvalidParameterError struct { | ||
msg string | ||
} | ||
|
||
func (e *InvalidParameterError) Error() string { | ||
return fmt.Sprintf("Invalid parameter error: %v", e.msg) | ||
} | ||
|
||
/* | ||
* General error | ||
*/ | ||
type FuzzerError struct { | ||
msg string | ||
} | ||
|
||
func (e *FuzzerError) Error() string { | ||
return fmt.Sprintf("General Fuzzer error: %v", e.msg) | ||
} | ||
|
||
/* | ||
* Error for an usupported action/parameter | ||
*/ | ||
type NotSupportedError struct { | ||
msg string | ||
} | ||
|
||
func (e *NotSupportedError) Error() string { | ||
return fmt.Sprintf("Not supported action or parameter: %v", e.msg) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.