MCPcopy Create free account
hub / github.com/bytedance/bolt / string makeErrorMessage

Method string makeErrorMessage

bolt/expression/CastExpr-tpl.cpp:806–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804};
805
806FOLLY_ALWAYS_INLINE std::string makeErrorMessage(
807 const BaseVector& input,
808 vector_size_t row,
809 const TypePtr& toType) {
810 return fmt::format(
811 "Cannot cast {} '{}' to {}.",
812 input.type()->toString(),
813 input.toString(row),
814 toType->toString());
815}
816
817FOLLY_ALWAYS_INLINE std::exception_ptr makeBadCastException(
818 const TypePtr& resultType,

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected