func ErrPostIDTooLong() sdk.Error {
	return linotypes.NewError(linotypes.CodePostIDTooLong, fmt.Sprintf("post ID is too long"))
}
ErrPostIDTooLong - error when post ID is too long
package types
import (
	"fmt"
	sdk "github.com/cosmos/cosmos-sdk/types"
	linotypes "github.com/lino-network/lino/types"
)
func ErrAccountNotFound(author linotypes.AccountKey) sdk.Error {
	return linotypes.NewError(linotypes.CodeAccountNotFound, fmt.Sprintf("account %v is not found", author))
}
func ErrPostNotFound(permlink linotypes.Permlink) sdk.Error {
	return linotypes.NewError(linotypes.CodePostNotFound, fmt.Sprintf("post %v doesn't exist", permlink))
}
func ErrPostAlreadyExist(permlink linotypes.Permlink) sdk.Error {
	return linotypes.NewError(linotypes.CodePostAlreadyExist, fmt.Sprintf("post %v already exist", permlink))
}
func ErrPostDeleted(permlink linotypes.Permlink) sdk.Error {
	return linotypes.NewError(linotypes.CodePostDeleted, fmt.Sprintf("permlink %v was deleted", permlink))
}
func ErrDeveloperNotFound(fromApp linotypes.AccountKey) sdk.Error {
	return linotypes.NewError(linotypes.CodeDeveloperNotFound, fmt.Sprintf("developer %s is not found", fromApp))
}
func ErrCannotDonateToSelf(user linotypes.AccountKey) sdk.Error {
	return linotypes.NewError(linotypes.CodeCannotDonateToSelf, fmt.Sprintf("donate failed, user %v donate to self", user))
}
func ErrInvalidDonationAmount(amount linotypes.Coin) sdk.Error {
	return linotypes.NewError(linotypes.CodeDonationAmountInvalid, fmt.Sprintf("donation amount is invalid: %s", amount))
}
func ErrProcessDonation(permlink linotypes.Permlink) sdk.Error {
	return linotypes.NewError(linotypes.CodeProcessDonation, fmt.Sprintf("failed to process donation: %s", permlink))
}
func ErrNoPostID() sdk.Error {
	return linotypes.NewError(linotypes.CodeNoPostID, fmt.Sprintf("no post ID"))
}